PX4 custom mode. More...
#include <px4_custom_mode.h>
Public Types | |
enum | MAIN_MODE { MAIN_MODE_MANUAL = 1, MAIN_MODE_ALTCTL, MAIN_MODE_POSCTL, MAIN_MODE_AUTO, MAIN_MODE_ACRO, MAIN_MODE_OFFBOARD, MAIN_MODE_STABILIZED, MAIN_MODE_RATTITUDE } |
enum | SUB_MODE_AUTO { SUB_MODE_AUTO_READY = 1, SUB_MODE_AUTO_TAKEOFF, SUB_MODE_AUTO_LOITER, SUB_MODE_AUTO_MISSION, SUB_MODE_AUTO_RTL, SUB_MODE_AUTO_LAND, SUB_MODE_AUTO_RTGS } |
Public Member Functions | |
custom_mode () | |
custom_mode (uint32_t val) | |
constexpr | custom_mode (uint8_t mm, uint8_t sm) |
Public Attributes | |
struct { | |
uint8_t main_mode | |
uint16_t reserved | |
uint8_t sub_mode | |
}; | |
uint32_t | data |
float | data_float |
PX4 custom mode.
This union decodes uint32_t HEARTBEAT.custom_mode and uint32_t SET_MODE.custom_mode.
Definition at line 55 of file px4_custom_mode.h.
MAIN_MODE_MANUAL | |
MAIN_MODE_ALTCTL | |
MAIN_MODE_POSCTL | |
MAIN_MODE_AUTO | |
MAIN_MODE_ACRO | |
MAIN_MODE_OFFBOARD | |
MAIN_MODE_STABILIZED | |
MAIN_MODE_RATTITUDE |
Definition at line 56 of file px4_custom_mode.h.
SUB_MODE_AUTO_READY | |
SUB_MODE_AUTO_TAKEOFF | |
SUB_MODE_AUTO_LOITER | |
SUB_MODE_AUTO_MISSION | |
SUB_MODE_AUTO_RTL | |
SUB_MODE_AUTO_LAND | |
SUB_MODE_AUTO_RTGS |
Definition at line 67 of file px4_custom_mode.h.
px4::custom_mode::custom_mode | ( | ) | [inline] |
Definition at line 85 of file px4_custom_mode.h.
px4::custom_mode::custom_mode | ( | uint32_t | val | ) | [inline, explicit] |
Definition at line 88 of file px4_custom_mode.h.
constexpr px4::custom_mode::custom_mode | ( | uint8_t | mm, |
uint8_t | sm | ||
) | [inline] |
Definition at line 91 of file px4_custom_mode.h.
struct { ... } |
uint32_t px4::custom_mode::data |
Definition at line 82 of file px4_custom_mode.h.
Definition at line 83 of file px4_custom_mode.h.
uint8_t px4::custom_mode::main_mode |
Definition at line 79 of file px4_custom_mode.h.
uint16_t px4::custom_mode::reserved |
Definition at line 78 of file px4_custom_mode.h.
uint8_t px4::custom_mode::sub_mode |
Definition at line 80 of file px4_custom_mode.h.