The fragments of PX4 documentation

The desperate search through a vast open-source project

I have been working on the PX4 platform since 2016, and through this many things have changed and I have seen plenty of things that should be common knowledge but they are not. More can be found on MRS Website. Here are my collections as I learnt:

Reading the logs

Vehicle flight mode

vehicle_status/nav_state:

flight_modes_table = {
0: (‘Manual’), # red
1: (‘Altitude’), # yellow
2: (‘Position’), # green
10: (‘Acro’), # olive
14: (‘Offboard’), # light blue
15: (‘Stabilized’), # dark blue
16: (‘Rattitude’), # orange # all AUTO-modes use the same color
3: (‘Mission’), # purple
4: (‘Loiter’), # purple
5: (‘Return to Land’), # purple
6: (‘RC Recovery’), # purple
7: (‘Return to groundstation’), # purple
8: (‘Land (engine fail)’), # purple
9: (‘Land (GPS fail)’), # purple
12: (‘Descend’), # purple
13: (‘Terminate’), # purple
17: (‘Takeoff’), # purple
18: (‘Land’), # purple
19: (‘Follow Target’), # purple
20: (‘Precision Land’), # purple
21: (‘Orbit’), # purple
}

RC Inputs

input_rc/values.00 : Roll
input_rc/values.01 : Throttle
input_rc/values.02 : Pitch
input_rc/values.03 : Yaw
input_rc/values.04 : Offboard
input_rc/values.05 : Flight Mode
manual_control_switches/* : Switches

Motor Mixing Strategies


Airmode : 0 : Disabled

Airmode : 1 : RP

Airmode 2 : RPY