Public Types | Public Member Functions | Public Attributes
px4::custom_mode Union Reference

PX4 custom mode. More...

#include <px4_custom_mode.h>

List of all members.

Public Types

enum  MAIN_MODE {
  MAIN_MODE_MANUAL = 1, MAIN_MODE_ALTCTL, MAIN_MODE_POSCTL, MAIN_MODE_AUTO,
  MAIN_MODE_ACRO, MAIN_MODE_OFFBOARD
}
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   px4::custom_mode::main_mode
   uint16_t   px4::custom_mode::reserved
   uint8_t   px4::custom_mode::sub_mode
}; 
uint32_t data
float data_float

Detailed Description

PX4 custom mode.

This union decodes uint32_t HEARTBEAT.custom_mode and uint32_t SET_MODE.custom_mode.

Definition at line 27 of file px4_custom_mode.h.


The documentation for this union was generated from the following file:


mavros
Author(s): Vladimir Ermakov
autogenerated on Wed Aug 26 2015 12:29:13