Closed nwdepatie closed 9 months ago
DMA seems to be a complete nightmare with Renode, so I might just use simple conversions
Specifically, here is the new config I am using, since we want the highest resolution on the actual accelerator pedals, I am allocating individual ADCs to both, and then the brake inputs share an ADC. This should result in values of 0-4096 for the accelerators with them being faster.
So we want to take an ADC reading of the accelerator and the brake sensors and then utilize those values in the program.
We need to figure out the bets configuration of ADCs in STM32CubeMX, actually copy the value into 4 distinct values in C, and potentially investigate DMA