Main Page
Namespaces
Classes
Files
File List
File Members
inc
msp
FlightMode.hpp
Go to the documentation of this file.
1
#ifndef FLIGHTMODE_HPP
2
#define FLIGHTMODE_HPP
3
4
namespace
fcu
{
5
6
struct
FlightMode
{
7
enum class
PRIMARY_MODE
: uint32_t {
8
UNSET
= 0,
9
ANGLE
,
10
HORIZON
,
11
NAV_POSHOLD
,
12
NAV_CRUISE
,
13
NAV_RTH
,
14
NAV_WP
,
15
MANUAL
16
};
17
18
enum class
SECONDARY_MODE
: uint32_t {
19
NONE = 0,
20
NAV_ALTHOLD = 1 << 0,
21
TURN_ASSIST = 1 << 1,
22
AIR_MODE = 1 << 2,
23
SURFACE = 1 << 3,
24
HEADING_HOLD = 1 << 4,
25
HEADFREE = 1 << 5,
26
HEADADJ = 1 << 6
27
};
28
29
enum class
MODIFIER
: uint32_t {
30
NONE = 0,
31
ARM = 1 << 0,
32
CAMSTAB = 1 << 1,
33
BEEPER = 1 << 2,
34
LEDLOW = 1 << 3,
35
OSD_SW = 1 << 4,
36
TELEMETRY = 1 << 5,
37
BLACKBOX = 1 << 6,
38
FAILSAFE = 1 << 7,
39
HOME_RESET = 1 << 8,
40
GCS_NAV = 1 << 9,
41
FLAPERON = 1 << 10,
42
NAV_LAUNCH = 1 << 11,
43
SERVO_AUTOTRIM = 1 << 12,
44
AUTOTUNE = 1 << 13
45
};
46
47
PRIMARY_MODE
primary
;
48
SECONDARY_MODE
secondary
;
49
MODIFIER
modifier
;
50
};
51
52
}
// namespace fcu
53
54
#endif
fcu::FlightMode::PRIMARY_MODE::HORIZON
fcu::FlightMode::PRIMARY_MODE::NAV_POSHOLD
fcu::FlightMode::PRIMARY_MODE::MANUAL
fcu::FlightMode
Definition:
FlightMode.hpp:6
fcu::FlightMode::PRIMARY_MODE
PRIMARY_MODE
Definition:
FlightMode.hpp:7
fcu::FlightMode::modifier
MODIFIER modifier
Definition:
FlightMode.hpp:49
fcu::FlightMode::secondary
SECONDARY_MODE secondary
Definition:
FlightMode.hpp:48
fcu::FlightMode::PRIMARY_MODE::NAV_CRUISE
fcu::FlightMode::PRIMARY_MODE::NAV_RTH
fcu
Definition:
FlightController.hpp:9
fcu::FlightMode::MODIFIER
MODIFIER
Definition:
FlightMode.hpp:29
fcu::FlightMode::primary
PRIMARY_MODE primary
Definition:
FlightMode.hpp:47
fcu::FlightMode::PRIMARY_MODE::UNSET
fcu::FlightMode::SECONDARY_MODE
SECONDARY_MODE
Definition:
FlightMode.hpp:18
fcu::FlightMode::PRIMARY_MODE::ANGLE
fcu::FlightMode::PRIMARY_MODE::NAV_WP
msp
Author(s): Christian Rauch
autogenerated on Tue Oct 6 2020 03:38:57