Ardrone
|
This is the Ardrone library. It provides a class for easy interfacing to Parrot AR.Drone quad-copter http://www.parrot.com via WiFi.
The version of the package that this documentation refers to can be downloaded from http://www.airspayce.com/mikem/arduino/Ardrone/Ardrone-1.3.zip You can find the latest version at http://www.airspayce.com/mikem/arduino/Ardrone
You MUST alter the WiShield library header files to enable the UDP app support in Wishield that Ardrone needs. See below.
You MUST pre-configure the AR.Drone to accept WiShield or Yellowjacket connections. See below.
Support of RSSI (receiver signal strength indicator) requires mods to WiShield library g2100.c as per http://asynclabs.com/forums/viewtopic.php?f=10&t=385&start=0. You dont have to add this but its a good feature.
Correct operation of the WiShield requires you to set the jumper on the WiShield to INT0 or DIG8 to select the arduino pin to use for WiShield interrupts, and also to make sure it agrees with the settings of USE_DIG0_INTR or USE_DIG8_INTR in spi.h in the WiShield library (which defaults to using Arduino digital pin 2, and which means setting the WiShield jumper to INT0 setting). Yes, the naming conventions are inconsistent :-(. In summary:
For YellowJacket (which has no jumper), leave it as USE_DIG0_INTR.
In order for WiShield library to support UDP (as needed by this module), you MUST set UIP_CONF_UDP to 1 in uip-conf.h. This is an unfortunate but necessary requirement, otherwise UDP support will not be compiled into the WiShield library. Further, you must edit apps-conf.h and make sure the only APP_* defined is APP_UDPAPP. Failure to do this will cause compile errors. A modified version of the WiShield library already edited for use with Ardrone and Arduino 1.0 is available at http://www.airspayce.com/mikem/arduino/WiShield-v1.3.0-0-mikem-RCKit.zip
WiShield will work with Arduino Mega, but with difficulty. The problem is that with the Mega, the SPI pins that are required for interface with WiShield come out on different pins to the smaller form factor arduinos like Diecimila and Duemilanove. So, to make the Mega work with the WiShield, you have to reroute the SPI pin to different Arduino pins, as per http://asynclabs.com/forums/viewtopic.php?f=13&t=19&hilit=mega&start=10
As delivered, the AR.Drone does not support the 1Mbit/sec data rate which is the only data rate WiShield supports. Without this Ardrone module will associate correctly with the AR.Drone. Experienced Linux users can follow these steps. If you are inexperienced unsure of some steps, more detail is at: http://www.rcgroups.com/forums/showthread.php?t=1335257&pp=50#post16498030 Caution: if you do not follow these steps precisely, you may make your AR.Drone uncontactable by WiFi.
Example Arduino programs are included to show the main modes of use.
The following example programs are provided:
Install in the usual way: unzip the distribution zip file to the libraries sub-folder of your sketchbook.
This software is Copyright (C) 2011 Mike McCauley. Use is subject to license conditions. The main licensing options available are GPL V2 or Commercial: