We should create a new struct for PowerAux errors. This can replace the PowerAuxExampleStruct. This struct should only be sent if one of the errors is active. We should send the message every 1 second if that is the case.
PowerAuxErrors
Bits
Field Name
0
fan_error
1
brake_light_error
2
headlight_error
3
bms_strobe_error
4
left_turn_error
5
right_turn_error
fan_error should be set based on the FanTach pin. If the value is below an arbitrary threshold (TBD), the pin should be set.
For each light, the error field should be set if:
the light is on (based on the value of the appropriate DigitalOut object)
the value of the current sensing pin for the light is below an arbitrary threshold (TBD)
We should create a new struct for PowerAux errors. This can replace the
PowerAuxExampleStruct
. This struct should only be sent if one of the errors is active. We should send the message every 1 second if that is the case.PowerAuxErrors
fan_error
brake_light_error
headlight_error
bms_strobe_error
left_turn_error
right_turn_error
fan_error
should be set based on theFanTach
pin. If the value is below an arbitrary threshold (TBD), the pin should be set.For each light, the error field should be set if:
DigitalOut
object)