Files
clearpilot/system/clearpilot/notes/dbc_explained.txt
Your Name c55a879968 wip
2024-05-02 01:07:51 -05:00

16 lines
1.1 KiB
Plaintext

A message starts with BO_ and the ID must be unique and in decimal (not hexadecimal)
The DBC ID adds 3 extra bits for 29 bit CAN IDs to serve as an 'extended ID' flag
The name must be unique, 1-32 characters and may contain [A-z], digits and underscores
The length (DLC) must be an integer between 0 and 1785
The sender is the name of the transmitting node, or Vector__XXX if no name is available
DBC signal syntax explained
Each message contains 1+ signals that start with SG_
The name must be unique, 1-32 characters and may contain [A-z], digits and underscores
The bit start counts from 0 and marks the start of the signal in the data payload
The bit length is the signal length
The @1 specifies that the byte order is little-endian/Intel (vs @0 for big-endian/Motorola)
The + informs that the value type is unsigned (vs - for signed signals)
The (scale,offset) values are used in the physical value linear equation (more below)
The [min|max] and unit are optional meta information (they can e.g. be set to [0|0] and "")
The receiver is the name of the receiving node (again, Vector__XXX is used as default)