-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent extended ID for Message and Signal #72
Comments
@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 |
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 push for the number 1 honestly. Cheers |
…rent message itself. This helps avoiding duplication (and the need to update the extended parent ID in signals too)
I opted for solution number 2, for 2 reasons:
In the next major version we will get rid of ID property. Cheers |
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:
The text was updated successfully, but these errors were encountered: