Created
July 9, 2013 14:41
-
-
Save rmehner/5957875 to your computer and use it in GitHub Desktop.
Sample drone script, just to show how easy it is
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
/** | |
* Play around with the numbers and the method names! | |
* | |
* For example: use counterClockwise and see what happens | |
*/ | |
var arDrone = require('ar-drone'); | |
var client = arDrone.createClient(); | |
client.takeoff(); | |
client | |
.after(5000, function() { | |
this.up(0.5); | |
}) | |
.after(2000, function() { | |
this.clockwise(0.5); | |
}) | |
.after(2000, function() { | |
this.stop(); | |
this.land(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment