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
Made sure it built with the docker container
To Do
[x] Pass all ADCs into vPedalMonitor
[x] Actually perform the logic of the ADC readings
[ ] Evaluate an interrupt-driven ADC approach
[ ] Investigate ADC mocking for Renode (this is another ticket but I want to prove feasibility of mocking my approach)
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.
[x] No merge conflicts
[x] All checks passing
[x] Remove any non-applicable sections of this template
[x] Assign the PR to yourself
[x] Request reviewers & ping on Slack
[x] PR is linked to the ticket (fill in the closes line below)
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
vPedalMonitor
Checklist
It can be helpful to check the
Checks
andFiles 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.