hytech-racing / MCU

https://hytech-racing.github.io/MCU/index.html
GNU General Public License v3.0
1 stars 0 forks source link

Added templated enqueue function to telem interface to limit code reuse #41

Closed walkermburns closed 9 months ago

walkermburns commented 9 months ago

This PR templates a function in the telem interface to allow us to pack and push messages onto the circular buffer in one line, removing the amount of reused code.

I will do the embedded tests I could not run tonight on Sunday, and then the commented code can be removed and this can be merged

closes #40

walkermburns commented 9 months ago

All tests passed. There was some funkiness with calling the templated function outside of the class when I was testing, but it works as is currently implemented. Merging this