diff --git a/docs/functional-areas/supervisor/states.md b/docs/functional-areas/supervisor/states.md index 1ad672f3de..12cdc64b6d 100644 --- a/docs/functional-areas/supervisor/states.md +++ b/docs/functional-areas/supervisor/states.md @@ -5,54 +5,8 @@ sort_order: 2 --- ## State diagram -{% ditaa --alt "Supervisor states" %} - Boot| - V -+-------------------+ -+ Not initialized + -+ + -+--------+----------+ - | - V -+-------------------+ -+ Pre-flight checks +<------------+ -+ not passed +<--+ | -+-------+-----------+ | | - | ^ | | - V | | | -+---------+---------+ | | -+ Pre-flight checks + | | -+ passed + | | -+-------+-----------+ | | - | ^ | +-------+---------+ - Arming| | | + Reset + - V | | + + -+---------+---------+ | +-----------------+ -+ Ready to fly +---+ ^ -+ + | -+--------+----------+ | - | | - V | -+-------------------+ | +-------------------+ -+ Flying +------------|-------->+ Warning + -+ +<-----------|---------+ Level out + -+--------+-------+--+ | +---------+---------+ - | | | | - V +---------------|-----+ V -+-------------------+ | | +-------------------+ -+ Landed +------------+ +-->+ Exception + -+ | + Free fall + -+--------+----------+ +---------+---------+ - | - | - +--------------+ - | - V - +-------------------+ - + Lock + - + + - +-------------------+ -{% endditaa %} + +![supervisor state diagram](/docs/images/supervisor_state_diagram.svg){:align-center} All states can be found in the `src/modules/interface/supervisor_state_machine.h` file. diff --git a/docs/images/supervisor_state_diagram.svg b/docs/images/supervisor_state_diagram.svg new file mode 100644 index 0000000000..c899feb99e --- /dev/null +++ b/docs/images/supervisor_state_diagram.svg @@ -0,0 +1,725 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Not initialized + + + + Pre flightchecks notpassed + + + + Ready to fly + + + + Flying + + + + Landed + + + + Reset + + + + ExceptionFree fall + + + + WarningLevel out + + + + Locked + + + + Crashed + + + + + + + + + + + + + + + + + + Armed + Recover + Timeout + +