-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathARDroneGeneratedTypes.h
230 lines (215 loc) · 7.63 KB
/
ARDroneGeneratedTypes.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!!! THIS FILE IS GENERATED AUTOMATICALLY, DO NOT CHANGE IT !!!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/*
* ARDroneGeneratedTypes.h
* ARDroneEngine
*
* Automatically generated.
* Copyright 2010 Parrot SA. All rights reserved.
*
*/
#ifndef _ARDRONE_GENERATED_TYPES_H_
#define _ARDRONE_GENERATED_TYPES_H_
#define ARDRONE_MAX_ENEMIES 4
typedef enum {
ARDRONE_LED_ANIMATION_BLINK_GREEN_RED,
ARDRONE_LED_ANIMATION_BLINK_GREEN,
ARDRONE_LED_ANIMATION_BLINK_RED,
ARDRONE_LED_ANIMATION_BLINK_ORANGE,
ARDRONE_LED_ANIMATION_SNAKE_GREEN_RED,
ARDRONE_LED_ANIMATION_FIRE,
ARDRONE_LED_ANIMATION_STANDARD,
ARDRONE_LED_ANIMATION_RED,
ARDRONE_LED_ANIMATION_GREEN,
ARDRONE_LED_ANIMATION_RED_SNAKE,
ARDRONE_LED_ANIMATION_BLANK,
ARDRONE_LED_ANIMATION_RIGHT_MISSILE,
ARDRONE_LED_ANIMATION_LEFT_MISSILE,
ARDRONE_LED_ANIMATION_DOUBLE_MISSILE,
ARDRONE_LED_ANIMATION_FRONT_LEFT_GREEN_OTHERS_RED,
ARDRONE_LED_ANIMATION_FRONT_RIGHT_GREEN_OTHERS_RED,
ARDRONE_LED_ANIMATION_REAR_RIGHT_GREEN_OTHERS_RED,
ARDRONE_LED_ANIMATION_REAR_LEFT_GREEN_OTHERS_RED,
ARDRONE_LED_ANIMATION_LEFT_GREEN_RIGHT_RED,
ARDRONE_LED_ANIMATION_LEFT_RED_RIGHT_GREEN,
ARDRONE_LED_ANIMATION_BLINK_STANDARD,
ARDRONE_LED_NB_ANIMATION,
} ARDRONE_LED_ANIMATION; //21 total. ARDRONE_LED_NB_ANIMATION IS A COUNTER, NOT AN ACTUAL ANIMATION
typedef enum {
ARDRONE_ANIM_PHI_M30_DEG= 0,
ARDRONE_ANIM_PHI_30_DEG,
ARDRONE_ANIM_THETA_M30_DEG,
ARDRONE_ANIM_THETA_30_DEG,
ARDRONE_ANIM_THETA_20DEG_YAW_200DEG,
ARDRONE_ANIM_THETA_20DEG_YAW_M200DEG,
ARDRONE_ANIM_TURNAROUND,
ARDRONE_ANIM_TURNAROUND_GODOWN,
ARDRONE_ANIM_YAW_SHAKE,
ARDRONE_ANIM_YAW_DANCE,
ARDRONE_ANIM_PHI_DANCE,
ARDRONE_ANIM_THETA_DANCE,
ARDRONE_ANIM_VZ_DANCE,
ARDRONE_ANIM_WAVE,
ARDRONE_ANIM_PHI_THETA_MIXED,
ARDRONE_ANIM_DOUBLE_PHI_THETA_MIXED,
ARDRONE_ANIM_FLIP_AHEAD,
ARDRONE_ANIM_FLIP_BEHIND,
ARDRONE_ANIM_FLIP_LEFT,
ARDRONE_ANIM_FLIP_RIGHT,
ARDRONE_NB_ANIM_MAYDAY
} anim_mayday_t; //20 total. NB_ANIM_MAYDAY is a counter, not an actual animation.
typedef enum {
ARDRONE_CAMERA_DETECTION_HORIZONTAL=0,
ARDRONE_CAMERA_DETECTION_VERTICAL,
ARDRONE_CAMERA_DETECTION_VISION,
ARDRONE_CAMERA_DETECTION_NONE,
ARDRONE_CAMERA_DETECTION_COCARDE,
ARDRONE_CAMERA_DETECTION_ORIENTED_COCARDE,
ARDRONE_CAMERA_DETECTION_STRIPE,
ARDRONE_CAMERA_DETECTION_H_COCARDE,
ARDRONE_CAMERA_DETECTION_H_ORIENTED_COCARDE,
ARDRONE_CAMERA_DETECTION_STRIPE_V,
ARDRONE_CAMERA_DETECTION_MULTIPLE_DETECTION_MODE,
ARDRONE_CAMERA_DETECTION_CAP,
ARDRONE_CAMERA_DETECTION_ORIENTED_COCARDE_BW,
ARDRONE_CAMERA_DETECTION_VISION_V2,
ARDRONE_CAMERA_DETECTION_TOWER_SIDE,
ARDRONE_CAMERA_DETECTION_NUM,
} ARDRONE_CAMERA_DETECTION_TYPE;
typedef enum {
ARDRONE_VIDEO_CHANNEL_FIRST=0,
ARDRONE_VIDEO_CHANNEL_HORI=ARDRONE_VIDEO_CHANNEL_FIRST,
ARDRONE_VIDEO_CHANNEL_VERT,
ARDRONE_VIDEO_CHANNEL_LARGE_HORI_SMALL_VERT,
ARDRONE_VIDEO_CHANNEL_LARGE_VERT_SMALL_HORI,
ARDRONE_VIDEO_CHANNEL_LAST=ARDRONE_VIDEO_CHANNEL_LARGE_VERT_SMALL_HORI,
ARDRONE_VIDEO_CHANNEL_NEXT,
} ARDRONE_VIDEO_CHANNEL;
typedef enum {
ARDRONE_VARIABLE_BITRATE_MODE_DISABLED=0,
ARDRONE_VARIABLE_BITRATE_MODE_DYNAMIC,
ARDRONE_VARIABLE_BITRATE_MANUAL
} ARDRONE_VARIABLE_BITRATE;
typedef enum {
ARDRONE_ENEMY_COLOR_ORANGE_GREEN=1,
ARDRONE_ENEMY_COLOR_ORANGE_YELLOW,
ARDRONE_ENEMY_COLOR_ORANGE_BLUE,
ARDRONE_ENEMY_COLOR_ARRACE_FINISH_LINE=0x10,
ARDRONE_ENEMY_COLOR_ARRACE_DONUT=0x11
} ARDRONE_ENEMY_COLOR;
typedef enum {
ARDRONE_CONFIG_KEY_VIDEO_ENABLE,//BOOLEAN
ARDRONE_CONFIG_KEY_CONTROL_LEVEL,//INT
ARDRONE_CONFIG_KEY_EULER_ANGLE_MAX,//FLOAT
ARDRONE_CONFIG_KEY_ALTITUDE_MAX,//INT
ARDRONE_CONFIG_KEY_ALTITUDE_MIN,//INT
ARDRONE_CONFIG_KEY_CONTROL_IPHONE_TILT,//FLOAT
ARDRONE_CONFIG_KEY_CONTROL_VZ_MAX,//FLOAT
ARDRONE_CONFIG_KEY_CONTROL_YAW,//FLOAT
ARDRONE_CONFIG_KEY_OUTDOOR,//BOOLEAN
ARDRONE_CONFIG_KEY_FLIGHT_WITHOUT_SHELL,//BOOLEAN
ARDRONE_CONFIG_KEY_AUTONOMOUS_FLIGHT,//BOOLEAN
ARDRONE_CONFIG_KEY_MANUAL_TRIM,//BOOLEAN
ARDRONE_CONFIG_KEY_INDOOR_EULER_ANGLE_MAX,//FLOAT
ARDRONE_CONFIG_KEY_INDOOR_CONTROL_VZ_MAX,//FLOAT
ARDRONE_CONFIG_KEY_INDOOR_CONTROL_YAW,//FLOAT
ARDRONE_CONFIG_KEY_OUTDOOR_EULER_ANGLE_MAX,//FLOAT
ARDRONE_CONFIG_KEY_OUTDOOR_CONTROL_VZ_MAX,//FLOAT
ARDRONE_CONFIG_KEY_OUTDOOR_CONTROL_YAW,//FLOAT
ARDRONE_CONFIG_KEY_FLYING_MODE,//INT
ARDRONE_CONFIG_KEY_HOVERING_RANGE,//INT
ARDRONE_CONFIG_KEY_FLIGHT_ANIM,//STRING
ARDRONE_CONFIG_KEY_TRAVELLING_MODE,//STRING
ARDRONE_CONFIG_KEY_TRAVELLING_ENABLE,//BOOLEAN
ARDRONE_CONFIG_KEY_SSID_SINGLE_PLAYER,//STRING
ARDRONE_CONFIG_KEY_SSID_MULTI_PLAYER,//STRING
ARDRONE_CONFIG_KEY_WIFI_MODE,//INT
ARDRONE_CONFIG_KEY_WIFI_RATE,//INT
ARDRONE_CONFIG_KEY_OWNER_MAC,//STRING
ARDRONE_CONFIG_KEY_CODEC_FPS,//INT
ARDRONE_CONFIG_KEY_VIDEO_CODEC,//INT
ARDRONE_CONFIG_KEY_VIDEO_SLICES,//INT
ARDRONE_CONFIG_KEY_VIDEO_LIVE_SOCKET,//INT
ARDRONE_CONFIG_KEY_BITRATE,//INT
ARDRONE_CONFIG_KEY_MAX_BITRATE,//INT
ARDRONE_CONFIG_KEY_BITRATE_CTRL_MODE,//INT
ARDRONE_CONFIG_KEY_BITRATE_STORAGE,//INT
ARDRONE_CONFIG_KEY_VIDEO_CHANNEL,//INT
ARDRONE_CONFIG_KEY_VIDEO_ON_USB,//BOOLEAN
ARDRONE_CONFIG_KEY_VIDEO_FILE_INDEX,//INT
ARDRONE_CONFIG_KEY_LEDS_ANIM,//STRING
ARDRONE_CONFIG_KEY_ENEMY_COLORS,//INT
ARDRONE_CONFIG_KEY_GROUNDSTRIPE_COLORS,//INT
ARDRONE_CONFIG_KEY_ENEMY_WITHOUT_SHELL,//INT
ARDRONE_CONFIG_KEY_DETECT_TYPE,//INT
ARDRONE_CONFIG_KEY_DETECTIONS_SELECT_H,//INT
ARDRONE_CONFIG_KEY_DETECTIONS_SELECT_V_HSYNC,//INT
ARDRONE_CONFIG_KEY_DETECTIONS_SELECT_V,//INT
ARDRONE_CONFIG_KEY_USERBOX_CMD,//STRING
ARDRONE_CONFIG_KEY_LATITUDE,//DOUBLE
ARDRONE_CONFIG_KEY_LONGITUDE,//DOUBLE
ARDRONE_CONFIG_KEY_ALTITUDE,//DOUBLE
} ARDRONE_CONFIG_KEYS;
typedef enum {
ARDRONE_VIDEO_CODEC_UVLC = 0x20,
ARDRONE_VIDEO_CODEC_P264 = 0x40,
ARDRONE_VIDEO_CODEC_MP4_360P = 0x80,
ARDRONE_VIDEO_CODEC_H264_360P = 0x81,
ARDRONE_VIDEO_CODEC_MP4_360P_H264_720P = 0x82,
ARDRONE_VIDEO_CODEC_H264_720P = 0x83,
ARDRONE_VIDEO_CODEC_MP4_360P_SLRS = 0x84,
ARDRONE_VIDEO_CODEC_H264_360P_SLRS = 0x85,
ARDRONE_VIDEO_CODEC_H264_720P_SLRS = 0x86,
ARDRONE_VIDEO_CODEC_H264_AUTO_RESIZE = 0x87,
ARDRONE_VIDEO_CODEC_MP4_360P_H264_360P = 0x88,
} ARDRONE_VIDEO_CODEC;
typedef enum {
ARDRONE_FLYING_MODE_FREE_FLIGHT=0,
ARDRONE_FLYING_MODE_HOVER_ON_TOP_OF_ROUNDEL=1<<0,
ARDRONE_FLYING_MODE_HOVER_ON_TOP_OF_ORIENTED_ROUNDEL=1<<1,
} ARDRONE_FLYING_MODE;
typedef enum {
ARDRONE_ACADEMY_STATE_NONE,
ARDRONE_ACADEMY_STATE_CONNECTION,
ARDRONE_ACADEMY_STATE_PREPARE_PROCESS,
ARDRONE_ACADEMY_STATE_PROCESS,
ARDRONE_ACADEMY_STATE_FINISH_PROCESS,
ARDRONE_ACADEMY_STATE_DISCONNECTION,
ARDRONE_ACADEMY_STATE_MAX,
} ARDRONE_ACADEMY_STATE;
typedef enum {
ARDRONE_ACADEMY_RESULT_NONE,
ARDRONE_ACADEMY_RESULT_OK,
ARDRONE_ACADEMY_RESULT_FAILED,
} ARDRONE_ACADEMY_RESULT;
typedef enum {
ARDRONE_FLYING_STATE_LANDED=0,
ARDRONE_FLYING_STATE_FLYING,
ARDRONE_FLYING_STATE_TAKING_OFF,
ARDRONE_FLYING_STATE_LANDING,
} ARDRONE_FLYING_STATE;
/* Timeout for mayday maneuvers*/
static const int32_t MAYDAY_TIMEOUT[ARDRONE_NB_ANIM_MAYDAY] = {
1000, // ARDRONE_ANIM_PHI_M30_DEG
1000, // ARDRONE_ANIM_PHI_30_DEG
1000, // ARDRONE_ANIM_THETA_M30_DEG
1000, // ARDRONE_ANIM_THETA_30_DEG
1000, // ARDRONE_ANIM_THETA_20DEG_YAW_200DEG
1000, // ARDRONE_ANIM_THETA_20DEG_YAW_M200DEG
2000, // ARDRONE_ANIM_TURNAROUND (5000)
2000, // ARDRONE_ANIM_TURNAROUND_GODOWN (5000)
2000, // ARDRONE_ANIM_YAW_SHAKE
5000, // ARDRONE_ANIM_YAW_DANCE
5000, // ARDRONE_ANIM_PHI_DANCE
5000, // ARDRONE_ANIM_THETA_DANCE
5000, // ARDRONE_ANIM_VZ_DANCE
5000, // ARDRONE_ANIM_WAVE
5000, // ARDRONE_ANIM_PHI_THETA_MIXED
5000, // ARDRONE_ANIM_DOUBLE_PHI_THETA_MIXED
15, // ARDRONE_ANIM_FLIP_AHEAD
15, // ARDRONE_ANIM_FLIP_BEHIND
15, // ARDRONE_ANIM_FLIP_LEFT
15, // ARDRONE_ANIM_FLIP_RIGHT
};
#endif // _ARDRONE_GENERATED_TYPES_H_