Typedefs | Functions | Variables
uas.cpp File Reference

MAVROS UAS manager. More...

#include <stdexcept>
#include <mavros/mavros_uas.h>
#include <mavros/utils.h>
#include <mavros/px4_custom_mode.h>
Include dependency graph for uas.cpp:

Go to the source code of this file.

Typedefs

typedef std::map< uint32_t,
std::string > 
cmode_map

Functions

static bool cmode_find_cmap (const cmode_map &cmap, std::string &cmode_str, uint32_t &cmode)
static bool is_apm_copter (enum MAV_TYPE &type)
static std::string str_base_mode (int base_mode)
static std::string str_custom_mode (uint32_t custom_mode)
static std::string str_mode_cmap (const cmode_map &cmap, uint32_t custom_mode)
static std::string str_mode_px4 (uint32_t custom_mode_int)

Variables

static const cmode_map arducopter_cmode_map
 APM:Copter custom mode -> string.
static const cmode_map arduplane_cmode_map
 APM:Plane custom mode -> string.
static const cmode_map px4_cmode_map
 PX4 custom mode -> string.

Detailed Description

MAVROS UAS manager.

Author:
Vladimir Ermakov <vooon341@gmail.com>

Definition in file uas.cpp.


Typedef Documentation

typedef std::map<uint32_t, std::string> cmode_map

Definition at line 55 of file uas.cpp.


Function Documentation

static bool cmode_find_cmap ( const cmode_map cmap,
std::string &  cmode_str,
uint32_t &  cmode 
) [static]
Todo:
parse CMODE(dec)

Definition at line 171 of file uas.cpp.

static bool is_apm_copter ( enum MAV_TYPE type) [inline, static]

Definition at line 141 of file uas.cpp.

static std::string str_base_mode ( int  base_mode) [inline, static]

Definition at line 108 of file uas.cpp.

static std::string str_custom_mode ( uint32_t  custom_mode) [static]

Definition at line 114 of file uas.cpp.

static std::string str_mode_cmap ( const cmode_map cmap,
uint32_t  custom_mode 
) [static]

Definition at line 120 of file uas.cpp.

static std::string str_mode_px4 ( uint32_t  custom_mode_int) [inline, static]

Definition at line 128 of file uas.cpp.


Variable Documentation

Initial value:
 {
        { 0, "STABILIZE" },
        { 1, "ACRO" },
        { 2, "ALT_HOLD" },
        { 3, "AUTO" },
        { 4, "GUIDED" },
        { 5, "LOITER" },
        { 6, "RTL" },
        { 7, "CIRCLE" },
        { 8, "POSITION" },
        { 9, "LAND" },
        { 10, "OF_LOITER" },
        { 11, "APPROACH" }
}

APM:Copter custom mode -> string.

Definition at line 77 of file uas.cpp.

Initial value:
 {
        { 0, "MANUAL" },
        { 1, "CIRCLE" },
        { 2, "STABILIZE" },
        { 3, "TRAINING" },
        { 4, "ACRO" },
        { 5, "FBWA" },
        { 6, "FBWB" },
        { 7, "CRUISE" },
        { 8, "AUTOTUNE" },
        { 10, "AUTO" },
        { 11, "RTL" },
        { 12, "LOITER" },
        { 14, "LAND" },
        { 15, "GUIDED" },
        { 16, "INITIALISING" }
}

APM:Plane custom mode -> string.

Definition at line 58 of file uas.cpp.

const cmode_map px4_cmode_map [static]


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