150 #include <WiShield.h>
151 #include <inttypes.h>
185 #define ARDRONE_NAVDATA_PORT 5554
186 #define ARDRONE_VIDEO_PORT 5555
187 #define ARDRONE_AT_PORT 5556
188 #define ARDRONE_CONFIGDATA_PORT 5559
190 #define ARDRONE_STATE_CONNECTING 0
191 #define ARDRONE_STATE_INITIALISING 1
192 #define ARDRONE_STATE_INITIALISED 2
195 #define ARDRONE_PCMD_FLAG_PROGRESSIVE 0x1
196 #define ARDRONE_PCMD_FLAG_COMBINED_YAW 0x2
199 #define ARDRONE_REF_FLAG_EMERGENCY 0x100
200 #define ARDRONE_REF_FLAG_START 0x200
201 #define ARDRONE_REF_FLAG_BASIC 0x11540000
204 #define ARDRONE_AT_CMD_INTERVAL 30
208 #define ARDRONE_MAX_AT_COMMAND_LENGTH 300
216 ARDRONE_LED_ANIMATION_BLINK_GREEN_RED = 0,
217 ARDRONE_LED_ANIMATION_BLINK_GREEN,
218 ARDRONE_LED_ANIMATION_BLINK_RED,
219 ARDRONE_LED_ANIMATION_BLINK_ORANGE,
220 ARDRONE_LED_ANIMATION_SNAKE_GREEN_RED,
221 ARDRONE_LED_ANIMATION_FIRE,
222 ARDRONE_LED_ANIMATION_STANDARD,
223 ARDRONE_LED_ANIMATION_RED,
224 ARDRONE_LED_ANIMATION_GREEN,
225 ARDRONE_LED_ANIMATION_RED_SNAKE,
226 ARDRONE_LED_ANIMATION_BLANK,
227 ARDRONE_LED_ANIMATION_RIGHT_MISSILE,
228 ARDRONE_LED_ANIMATION_LEFT_MISSILE,
229 ARDRONE_LED_ANIMATION_DOUBLE_MISSILE,
230 ARDRONE_LED_ANIMATION_FRONT_LEFT_GREEN_OTHERS_RED,
231 ARDRONE_LED_ANIMATION_FRONT_RIGHT_GREEN_OTHERS_RED,
232 ARDRONE_LED_ANIMATION_REAR_RIGHT_GREEN_OTHERS_RED,
233 ARDRONE_LED_ANIMATION_REAR_LEFT_GREEN_OTHERS_RED,
234 ARDRONE_LED_ANIMATION_LEFT_GREEN_RIGHT_RED,
235 ARDRONE_LED_ANIMATION_LEFT_RED_RIGHT_GREEN,
236 ARDRONE_LED_ANIMATION_BLINK_STANDARD,
244 ARDRONE_ANIMATION_PHI_M30_DEG = 0,
245 ARDRONE_ANIMATION_PHI_30_DEG,
246 ARDRONE_ANIMATION_THETA_M30_DEG,
247 ARDRONE_ANIMATION_THETA_30_DEG,
248 ARDRONE_ANIMATION_THETA_20DEG_YAW_200DEG,
249 ARDRONE_ANIMATION_THETA_20DEG_YAW_M200DEG,
250 ARDRONE_ANIMATION_TURNAROUND,
251 ARDRONE_ANIMATION_TURNAROUND_GODOWN,
252 ARDRONE_ANIMATION_YAW_SHAKE,
253 ARDRONE_ANIMATION_YAW_DANCE,
254 ARDRONE_ANIMATION_PHI_DANCE,
255 ARDRONE_ANIMATION_THETA_DANCE,
256 ARDRONE_ANIMATION_VZ_DANCE,
257 ARDRONE_ANIMATION_WAVE,
258 ARDRONE_ANIMATION_PHI_THETA_MIXED,
259 ARDRONE_ANIMATION_DOUBLE_PHI_THETA_MIXED,
410 void addAtMiscCmd(uint16_t a, uint16_t b, uint16_t c, uint16_t d);
430 void sendAtCmd(uint8_t* msg, uint16_t len);
442 unsigned long _sequence;
447 float _control_vz_max;
448 float _euler_angle_max;