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
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.
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.