A.R.Drone Developer Guide - Abstract
A.R.Drone Developer Guide - Abstract
A.R.Drone Developer Guide - Abstract
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
8.8 Leds configuration<br />
LEDS:leds_anim<br />
Description :<br />
Use this setting to launch leds animations.<br />
73<br />
Read/Write<br />
The parameter is a string containing the animation number, its frequency (Hz) and its duration<br />
(s), separated with commas. Animation names can be found in the led_animation.h file.<br />
Note : The frequency parameter is a floating point parameter, but in configuration string it will<br />
be print as the binary equivalent integer.<br />
AT command example : AT*CONFIG=605,"leds:leds_anim","3,1073741824,2"<br />
API use example :<br />
char param[20];<br />
float frequency = 2.0;<br />
snprintf (param, sizeof (param), "%d,%d,%d", ARDRONE_LED_ANIMATION_BLINK_-<br />
ORANGE, *(unsigned int *)&frequency, 5);<br />
ARDRONE_TOOL_CONFIGURATION_ADDEVENT (flight_anim, param, myCallback);