Skip to content

Commit

Permalink
Updated supervisor state diagram in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
evoggy committed Mar 21, 2024
1 parent f61da11 commit 1f48f75
Show file tree
Hide file tree
Showing 2 changed files with 727 additions and 48 deletions.
50 changes: 2 additions & 48 deletions docs/functional-areas/supervisor/states.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Loading

0 comments on commit 1f48f75

Please sign in to comment.