Instantly share code, notes, and snippets.

Embed
What would you like to do?
ardrone-mission
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