Skip to content
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

Question on combining data from multiple CAN messages (id) into one #16

Open
raksac opened this issue Mar 23, 2024 · 1 comment
Open

Comments

@raksac
Copy link

raksac commented Mar 23, 2024

I am trying to understand a (unique I think) problem with the CAN signals. I need to combine more than one CAN messages into one VSS signal. For example: The latitude (DMS) is reported in two different CAN messages as integers. Likewise Longitude value is also reported in two different CAN messages. Is there a concatenate operator which can be used to combine two different signal values to get latitude (and longitude) into one DMS (float) value?

@erikbosch
Copy link
Contributor

As of today we do not have any support in the mapping syntax to describe more complex mapping, like when multiple CAN-signals are needed to create a VSS-signal.

It would be a possibility to extend the mapping syntax to allow to give multiple CAN-signals as "source", but then one would also need to make sure that the conversion happens atomically so that you do not use the "old value" for the first part of the longitude and the "new value" for the second part.

A possible work-around is to extend VSS with some private signals (like LongitudeMSB and LongitudeLSB) and let some other app/client do the concatenation. But also then one could get into problems if data is not handled atomically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants