feat: add irts file module, and test file - #14
Conversation
| EAGLETRT_VOLATILE double left_temperature; | ||
| EAGLETRT_VOLATILE double right_temperature; |
There was a problem hiding this comment.
Since you have the irts names you can use them as indices for an array instead of having the two independent temperatures.
Bridiro
left a comment
There was a problem hiding this comment.
Well I won't add more comments as everything seems already addressed.
One quick note on double. Even if it's fine on normal PCs, on MCUs as STM32, 32 is the architecture, and this means they work fine for 32 bits sized types (uint32_t, float...) but as we studied in Calcolatori last year, they need more than one instruction to operate on bigger values (e.g. double...), and this means the operation is not atomic. While the single-time operation cost is probably negligible, the power constraints are big on MCUs and we might as well keep the usage as low as possible.
Co-authored-by: Alessandro Bridi <ale.bridi15@gmail.com>
Co-authored-by: Antonio Gelain <61268285+Tonidotpy@users.noreply.github.com>
Co-authored-by: Antonio Gelain <61268285+Tonidotpy@users.noreply.github.com>
Co-authored-by: Antonio Gelain <61268285+Tonidotpy@users.noreply.github.com>
Purpose
Implement IRTS module.
Overview
Irts files and unit test.
Guidance
Irts files and unit test.