Replies: 3 comments 2 replies
-
This can be done by using the
For example:
In which the buffer must be able to keep at least as many bytes as the underlying message may has according to the parsed DBC. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Your code looks fine, though I recommend to not use the dbcppp's DBC API for the lookup. The dbcppp is only meant to be a parser. For lookup, you better go with a hash map or a vector in order to access the desired signal with better performance. For an example you can look at the message usage in the BasicExample. If you want more specific help, you have either update to the current version of dbcppp or provide a reference to the version you use. Additionally a small program which reprdocues the error you are reffering to would be of great help. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am using dbcppp with ROS to decode the CAN frames and it works fine.
Now I want to encode the CAN frames, i.e, I have data and I want to assign them to different signals in the CAN FRAME, and then I send this frame to the CAN network
Is there an example to do this? @xR3b0rn @derkomai @ByunghunLee @byunghun-ee
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions