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 More...
 
constexpr uint32_t define_mode_auto (enum custom_mode::SUB_MODE_AUTO sm)
 helper function to define auto mode as uint32_t constant More...
 

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 107 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 119 of file px4_custom_mode.h.



mavros
Author(s): Vladimir Ermakov
autogenerated on Mon Jul 8 2019 03:20:11