Skip to content

floating point values from DBC file truncated to integer #247

@bomm

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.)

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