Skip to content

floating point values from DBC file truncated to integer #247

Description

@bomm

When loading a DBC file that contains floating point values as factor, min or max value of a signal, the values are truncated to integer.

For example, a factor of 0.01 is truncated to 0, resulting in an error message: signalToRaw():cansignalencoder_p.cpp@143] Factor for Temperature signal is 0! Signal encoding failed. This means the internal value is affected, not only the display in the CanSignalData node.

Example file: https://github.com/cantools/cantools/blob/master/tests/files/dbc/motohawk.dbc

(I don't know if the truncation occurs in CANdb or CANdevStudio.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions