DBC scalings applied wrongly
Opened this issue · 0 comments
RobPearce commented
In the getattribute method of CANMessage, around line 270 of canmessage.py:
if (factor, offset) == (1, 0): return value else: return (value - offset) * factor
This is wrong. The offset in a DBC file is defined in engineering units and should be added after the multiplication
return (value * factor ) + offset
The equivalent error also exists in the setattr method