davefiddes / openinverter-can-tool

A tool to allow configuration and operating of openinverter systems for electric vehicles over a CAN connection
MIT License
11 stars 2 forks source link

DBC file generation for enum parameters with an offset #8

Closed davefiddes closed 1 week ago

davefiddes commented 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:

Expected result:

The actual result:

davefiddes commented 1 week ago

Fixed in the 0.2.1 release. DBC files are now generated using whatever gain and offset have been applied to the parameter.