[ANN] Fantom SDK for AR Drone 2.0


#1

To announce an initial release of the (unofficial) Fantom Parrot Drone SDK 2.0.

http://eggbox.fantomfactory.org/pods/afParrotSdk2/

It’s a pure Fantom implementation of the Parrot SDK 2.0 that lets you pilot your AR Drone quadcopter remotely via Fantom programs.

The Fantom SDK features:

  • Blocking & non-blocking drone movement methods
  • Feedback events with telemetry, flight, and drone data
  • Pre-programmed flight stunts and LED patterns
  • Read and write drone configuration
  • Full decoding of all navigation option data
  • Exit strategy to guard against run-away drones when your program crashes!

Sample Fantom code:

using afParrotSdk2

class Example {
    Void main() {
        drone := Drone().connect
        drone.clearEmergencyFlag

        // handle feedback events
        drone.onEmergency = |->| {
            echo("!!! EMERGENCY LANDING !!!")
        }

        // control the drone
        drone.takeOff
        drone.spinClockwise(0.5f, 3sec)
        drone.moveForward  (1.0f, 2sec)
        drone.animateFlight(FlightAnimation.flipBackward)
        drone.land

        drone.disconnect
    }
}

For SDK implementations in other languages, see:

Have fun!


#2

The new version (just released) now supports video streaming!


#3

A small video tutorial on how to perform autonomous flips with the Fantom Parrot Drone SDK.

Have fun!