Skip to content

Instantly share code, notes, and snippets.

@pasupulaphani
Created February 17, 2014 12:57
Show Gist options
  • Save pasupulaphani/9050052 to your computer and use it in GitHub Desktop.
Save pasupulaphani/9050052 to your computer and use it in GitHub Desktop.
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