Jim McKeeth from Embarcadero has released a free component called TARDrone for Delphi XE6 Firemonkey which can control a quadricopter drone. It is specifically for the Parrot AR.Drone 2.0 device and uses UDP to communicate from your Firemonkey app. The AR.Drone device has an access point that you connect your Firemonkey device to and then the TARDrone component finds and talks to the drone device. The component is not specifically for mobile devices which means it should run on all Firemonkey platforms which are Windows, OSX, IOS, and Android. You should also be able to use it with AppMethod and Delphi XE5 without too much trouble. Additionally, because it uses UDP to talk to the drone there aren’t any special interfaces you have to make through Bluetooth or USB. The component provides animations that you can send to the drone and it will perform those animations and it provides control of the LED lights on the device among other things. There are three different versions of the drone available and one of them even includes a GPS. There is also a Developer SDK available for the AR.Drone 2.0 from the manufacturer if you want to enhance the TARDrone component. Here is a code snippet from the component:
procedure SendCommand(cmd, arg: string);
procedure RestrictAltitude(const Max: Integer); // between 500 to 5000
procedure Config(const Key, Value: string);
procedure AnimateLEDs(const Animation: TLEDAnimation; const FreqHz: Single; const DurationSeconds: Integer);
procedure FlatTrims; // Tell drone is is horizontal
procedure AnimateDrone(const Animation: TDroneAnimation; const DurationSeconds: Integer);
Quadricopter Drone Control Component For Delphi XE6 Firemonkey On Android And IOS by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.