Closed davefiddes closed 1 week ago
It seems that if an enum parameter is configured with an offset the DBC generation doesn't take this into account.
To replicate:
oic can add tx 0x3ff seldir 32 8 1.0 1
oic can export --format dbc test.dbc
seldir
Expected result:
Neutral
The actual result:
Reverse
Fixed in the 0.2.1 release. DBC files are now generated using whatever gain and offset have been applied to the parameter.
It seems that if an enum parameter is configured with an offset the DBC generation doesn't take this into account.
To replicate:
oic can add tx 0x3ff seldir 32 8 1.0 1
oic can export --format dbc test.dbc
seldir
value reported in SavvyCANExpected result:
seldir
value isNeutral
The actual result:
seldir
value isReverse