Skip to content

Instantly share code, notes, and snippets.

@bienvenidosaez
Created February 22, 2015 21:20
Show Gist options
  • Save bienvenidosaez/17a0f165c18815b95bc1 to your computer and use it in GitHub Desktop.
Save bienvenidosaez/17a0f165c18815b95bc1 to your computer and use it in GitHub Desktop.
Primeros vuelos programados
var arDrone = require('ar-drone');
var client = arDrone.createClient();
client.takeoff();
client
.after(5000, function() {
this.front(0.2);
})
.after(3000, function() {
this.stop();
})
.after(2000, function() {
this.clockwise(0.3);
})
.after(2500, function() {
this.stop();
})
.after(2000, function() {
this.front(0.1);
})
.after(6000, function() {
this.stop();
})
.after(1000, function() {
this.land();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment