diff --git a/Documentation/State machine diagram.drawio b/Documentation/State machine diagram.drawio new file mode 100644 index 0000000..822ad37 --- /dev/null +++ b/Documentation/State machine diagram.drawio @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Documentation/State machine diagram.svg b/Documentation/State machine diagram.svg new file mode 100644 index 0000000..2e3cfbb --- /dev/null +++ b/Documentation/State machine diagram.svg @@ -0,0 +1,4 @@ + + + +CAN Signal: 1000 0000RELAY_BAT_SIDE > RELAY_ESC_SIDEfor longer than 5 seconds
INACTIVE
INACTIVE
Allows quick shutdown. Could be done with ERRORRELAY_BAT_SIDE = RELAY_ESC_SIDEif it is around 90% done
PRECHARGE
PRECHARGE
Allows quick reactivation instead of shutdownRELAY_ESC_SIDE == 0
DISCHARGE
DISCHARGE
CAN Signal = 1100 0000
READY
READY
CAN Signal: 0000 0000 ORBattery out of charge
CAN_Signal: 1000 0000
CAN_Signal: 1000 0000
ACTIVE
ACTIVE
PRECHARGE is done
CHARGING
PRECHAGE
CHARGING...
CHARGING is done
CHARGING
CHARGING
CAN_Signal: 0000 0000
Text is not SVG - cannot display
\ No newline at end of file