-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflt_modes.h
40 lines (38 loc) · 1.56 KB
/
flt_modes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
const char VectorFlightModeStr[16][15] PROGMEM = {
"2D",
"WAYPOINT",
"2D_AH",
"2D_HH",
"LOITER",
"3D",
"3D_HH",
"RTH",
"LAND",
"CARTESIAN",
"CART_LOITER",
"POLAR",
"POLAR_LOITER",
"CENTER_STICK",
"MANUAL",
"MAX"};
const typedef enum{
STABILIZE = 2,
RTL = 11
}arduPlaneModes_e;
const typedef enum {
ARM_ACRO_BF = (1 << 0),
STAB_BF = (1 << 1),
HOR_BF = (1 << 2),
HEAD_BF = (1 << 3),
FS_BF = (1 << 4),
RESC_BF = (1 << 5)
} betaflightDJIModesMask_e;
//DJI supported flightModeFlags
// 0b00000001 acro/arm
// 0b00000010 stab
// 0b00000100 hor
// 0b00001000 head
// 0b00010000 !fs!
// 0b00100000 resc
// 0b01000000 acro
// 0b10000000 acro