Created
February 17, 2014 12:57
-
-
Save pasupulaphani/9050052 to your computer and use it in GitHub Desktop.
ardrone-mission
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 autonomy = require('ardrone-autonomy'); | |
var mission = autonomy.createMission(); | |
mission.takeoff() | |
.zero() // current position/orientation as the base state of the kalman filter | |
.hover(1000) | |
.go({x:0, y:0, z:1.5}) | |
.hover(1000) | |
.land(); | |
mission.run(function (err, result) { | |
if (err) { | |
console.trace("Oops, something bad happened: %s", err.message); | |
mission.client().stop(); | |
mission.client().land(); | |
} else { | |
console.log("Mission success!"); | |
process.exit(0); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment