Function px4::define_mode

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:
  • mm – main mode

  • sm – sub mode (currently used only in auto mode)

Returns:

uint32_t representation