vcu
vcu copied to clipboard
feat: R2D Pump Lockout
Description
Check for pump load through PDM before getting into R2D. This is needed to make sure that pumps actually work before proceeding.
Requirements
- [x] Start pumps before entering r2d
- [x] Check if their voltage is high enough to classify as "working"
- [x] Block entering r2d if not
Read the CAN-S message PDM_Out_Voltage to determine the load on the pumps. Pump1 corresponds to pin 4, and Pump2 corresponds to pin 5.
Note to self:
Need to read PDM_Output_4_Voltage & PDM_Output_5_Voltage
See pm100.c
Voltage should be 12V to classify as working?
@r-kirkbride let it be anything over 8V