-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove AnalogInput class. Update status light. Send diagnos…
…tics over CAN. The AnalogInput class only wrapped an ADC peripheral with a moving average and a mapping function. Moved the behaviour to individual methods in main.cc to simplify it. Didn't keep the moving average - we will handle this in the control system if deemed necessary, and I never liked how we used a 20step moving average which delays the reponse time by 100/2=50 ms. Unhandled Simulink outputs are now sent over CAN or properly consumed.
- Loading branch information
1 parent
c1bc371
commit 59a4582
Showing
3 changed files
with
157 additions
and
166 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.