Class Px4Mode
PX4's custom_mode field on HEARTBEAT is a packed uint32: main mode in
byte 2, sub-mode in byte 3. This helper unpacks it into a human-readable label
matching the conventional PX4 mode strings (AUTO.LOITER, MANUAL, etc.).
public static class Px4Mode
- Inheritance
-
Px4Mode
- Inherited Members
Methods
Format(uint)
Unpacks a PX4 custom_mode uint32 into a human-readable mode label (e.g. "AUTO.LOITER").
public static string Format(uint customMode)
Parameters
customModeuint