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, 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

Detailed Description

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.


Member Enumeration Documentation

Enumerator:
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.

Enumerator:
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.


Constructor & Destructor Documentation

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.


Member Data Documentation

struct { ... }

Definition at line 82 of file px4_custom_mode.h.

Definition at line 83 of file px4_custom_mode.h.

Definition at line 79 of file px4_custom_mode.h.

Definition at line 78 of file px4_custom_mode.h.

Definition at line 80 of file px4_custom_mode.h.


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


mavros
Author(s): Vladimir Ermakov
autogenerated on Sat Jun 8 2019 19:55:20