Created
February 22, 2015 21:20
-
-
Save bienvenidosaez/17a0f165c18815b95bc1 to your computer and use it in GitHub Desktop.
Primeros vuelos programados
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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