Closed mparge closed 3 months ago
@mparge you right the signal.ID is set to the message.ID when the signal is added but when the dbc is finally build the message.ID is updated with the extendend logic and due to the ID being uint and therefor a value type the ID in the Signal is not updated.
I think you could implement either of the first two options and create a pull request if you want. The italian guys would be happy i guess ;)
@Adhara3 which solution woudl you prefer:
I would also recommend to change the name of ID in Signal to MessageID as a Signal has no ID (ID for a signal is the name). I think having an ID in there isnt really clear
I would also recommend to change the name of ID in Signal to MessageID as a Signal has no ID (ID for a signal is the name). I think having an ID in there isnt really clear
What if we remove the property completely? I mean, the dbc is browsable, if you iterate messages you get signals so the ID is there. I mean, this is a duplicated stuff! I would do one of the following:
Signal.MessageId => m_parentMessage.Id
(no duplication)I would push for the number 1 honestly.
Cheers Andrea
I opted for solution number 2, for 2 reasons:
In the next major version we will get rid of ID property.
Cheers A
When parsing a dbc file which uses extended IDs, the MSB of the ID is set to 0 (in AdjustExtendedId)
But the IDs of the related signals aren't updated: