Classes | Functions
px4 Namespace Reference

Classes

union  custom_mode
 PX4 custom mode. More...

Functions

constexpr uint32_t define_mode (enum custom_mode::MAIN_MODE mm, uint8_t sm=0)
 helper function to define any mode as uint32_t constant
constexpr uint32_t define_mode_auto (enum custom_mode::SUB_MODE_AUTO sm)
 helper function to define auto mode as uint32_t constant

Function Documentation

constexpr uint32_t px4::define_mode ( enum custom_mode::MAIN_MODE  mm,
uint8_t  sm = 0 
)

helper function to define any mode as uint32_t constant

Parameters:
mmmain mode
smsub mode (currently used only in auto mode)
Returns:
uint32_t representation

Definition at line 105 of file px4_custom_mode.h.

constexpr uint32_t px4::define_mode_auto ( enum custom_mode::SUB_MODE_AUTO  sm)

helper function to define auto mode as uint32_t constant

Same as define_mode(custom_mode::MAIN_MODE_AUTO, sm)

Parameters:
smauto sub mode
Returns:
uint32_t representation

Definition at line 117 of file px4_custom_mode.h.



mavros
Author(s): Vladimir Ermakov
autogenerated on Thu Feb 9 2017 04:00:18