Northeastern-Electric-Racing / Cerberus

Our FreeRTOS-based vehicle control application
1 stars 0 forks source link

Improving ADC for Pedal Readings #102

Closed nwdepatie closed 6 months ago

nwdepatie commented 7 months ago

Changes

Basically I am working on improving the ADC readings of the pedals (accelerator and brakes) by changing the ADC configuration in STM32CubeMX. The ticket linked to this is #79, which was created because the way we did the pedal monitoring task was fairly hand wavy.

Notes

I allocated each accelerator its own ADC with a sampling time of 15 ADC cycles to try and reduce any noise and speed up conversion for the important readings. The brakes are both tied to 1 ADC, however, and the reading time for that is 3 cycles for each sensor.

Test Cases

To Do

Checklist

It can be helpful to check the Checks and Files changed tabs. Please reach out to your Project Lead if anything is unclear. Please request reviewers and ping on slack only after you've gone through this whole checklist.

nwdepatie commented 6 months ago

Note: Splitting out the sub tasks into smaller tickets