CAN Architecture Update #274
Replies: 7 comments 14 replies
-
I think this is it https://github.com/BlakeFreer/Playground/tree/e555038833af6384ae83c76c705acf8f5d65bfde/cpp/can-handler It has very similar functionality to the current system (no queue, just the most recent message) but is more performant by using template + concepts instead of virtual classes, completely removes the registry layer, and makes the generated code simpler |
Beta Was this translation helpful? Give feedback.
-
(Sam)
My question is, why does it matter to have the Tx and Rx struct definition in one? IMO this was a feature since it was really clear which messages were injested and which were sent by the system My question is, why does it matter to have the Tx and Rx struct definition in one? |
Beta Was this translation helpful? Give feedback.
-
(SAM)
These get inlined anyway so it just helps readability, any CAN C/C++ code library uses a similar structure so if you've seen it before it makes a lot of sense very quickly |
Beta Was this translation helpful? Give feedback.
-
(SAM)
This is huge |
Beta Was this translation helpful? Give feedback.
-
(SAM)
This is also huge |
Beta Was this translation helpful? Give feedback.
-
(SAM) Are you planning to get rid of timestamps? I think they can be important in a lot of places |
Beta Was this translation helpful? Give feedback.
-
https://github.com/BlakeFreer/Playground/tree/64feab529efb43873f078874f69e4530ce823872/cpp/can-handler Updated. Changed my mind on a lot.
To enforce the TxMessage invariant, you are unable to zero initialize the struct and populate the fields one-by-one as our current code does. You have to use a static |
Beta Was this translation helpful? Give feedback.
-
Relating to #242
This discussion was copied from @samparent97 and my discussion on MSTeams. Comments starting with
(SAM)
are his comments.Beta Was this translation helpful? Give feedback.
All reactions