Skip to content

Commit

Permalink
flight_modes_table: update list of modes
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Jan 10, 2024
1 parent c862f82 commit f842f81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions app/plot_app/config_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,23 @@
0: ('Manual', '#cc0000'), # red
1: ('Altitude', '#eecc00'), # yellow
2: ('Position', '#00cc33'), # green
6: ('Position (Slow)', '#00cc33'), # green
10: ('Acro', '#66cc00'), # olive
14: ('Offboard', '#00cccc'), # light blue
15: ('Stabilized', '#0033cc'), # dark blue
16: ('Rattitude', '#ee9900'), # orange

# all AUTO-modes use the same color
3: ('Mission', '#6600cc'), # purple
4: ('Loiter', '#6600cc'), # purple
5: ('Return to Land', '#6600cc'), # purple
6: ('RC Recovery', '#6600cc'), # purple
7: ('Return to groundstation', '#6600cc'), # purple
8: ('Land (engine fail)', '#6600cc'), # purple
9: ('Land (GPS fail)', '#6600cc'), # purple
12: ('Descend', '#6600cc'), # purple
13: ('Terminate', '#6600cc'), # purple
17: ('Takeoff', '#6600cc'), # purple
18: ('Land', '#6600cc'), # purple
19: ('Follow Target', '#6600cc'), # purple
20: ('Precision Land', '#6600cc'), # purple
21: ('Orbit', '#6600cc'), # purple
22: ('VTOL Takeoff', '#6600cc'), # purple
}

vtol_modes_table = {
Expand Down
1 change: 0 additions & 1 deletion app/plot_app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ def show_exception_page():
{'name': 'Acro', 'color': HTML_color_to_RGB(flight_modes_table[10][1])},
{'name': 'Stabilized', 'color': HTML_color_to_RGB(flight_modes_table[15][1])},
{'name': 'Offboard', 'color': HTML_color_to_RGB(flight_modes_table[14][1])},
{'name': 'Rattitude', 'color': HTML_color_to_RGB(flight_modes_table[16][1])},
{'name': 'Auto (Mission, RTL, Follow, ...)',
'color': HTML_color_to_RGB(flight_modes_table[3][1])}
]
Expand Down

0 comments on commit f842f81

Please sign in to comment.