From f86d8af20813805627908920157ace2e5188f50f Mon Sep 17 00:00:00 2001 From: Hamza Date: Sun, 26 May 2024 20:59:05 +0200 Subject: [PATCH] added a diagram for the state machine --- Documentation/State machine diagram.drawio | 170 +++++++++++++++++++++ Documentation/State machine diagram.svg | 4 + 2 files changed, 174 insertions(+) create mode 100644 Documentation/State machine diagram.drawio create mode 100644 Documentation/State machine diagram.svg 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