waterloo-rocketry / cansw_processor_stm

1 stars 0 forks source link

ADC Health Check Thread Current Sensing #18

Closed AryaPeer closed 1 month ago

AryaPeer commented 1 month ago
  1. Added over current ADC value a. Added the ADC Op-Amp gain factor as a define b. Updated Current Macro to use proper gain factor and a voltage
  2. Tested ADC Over Current with 50mA over current value (nominal is 500mA) a. Fixed ampersand typo in over current check (&& -> &) meaning the current is now fed into current data properly b. Updated name of the bus over current constant to match the actual one

Current Status: Getting ADC voltage and current values, with an occasional offset. Transmitting these values over UART (not sure if this is necessary still). And the over current protection is properly sending messages if there is an over current, over CAN.