Fixed several DBC related bugs, expanded support for FD frames in the

DBC editor windows. Should more or less function now even for FD frames.
This commit is contained in:
Collin Kidder
2022-12-07 21:51:44 -05:00
parent 8c19e6f123
commit 8ff3459c75
6 changed files with 81 additions and 40 deletions
+2 -2
View File
@@ -166,7 +166,7 @@ bool DBC_SIGNAL::processAsText(const CANFrame &frame, QString &outString, bool o
}
//like the above, this is rotten and evil and wrong in so many ways. Force
//calculation of a 64 bit integer and then cast it into a double.
result = Utility::processIntegerSignal(frame.payload(), 0, 64, intelByteOrder, false);
result = Utility::processIntegerSignal(frame.payload(), startBit, 64, intelByteOrder, false);
endResult = (*((double *)(&result)) * factor) + bias;
}
@@ -306,7 +306,7 @@ bool DBC_SIGNAL::processAsDouble(const CANFrame &frame, double &outValue)
}
//like the above, this is rotten and evil and wrong in so many ways. Force
//calculation of a 64 bit integer and then cast it into a double.
result = Utility::processIntegerSignal(frame.payload(), 0, 64, false, false);
result = Utility::processIntegerSignal(frame.payload(), startBit, 64, false, false);
endResult = (*((double *)(&result)) * factor) + bias;
}
cachedValue = endResult;