Skip to content

Instantly share code, notes, and snippets.

@lizell
Last active December 19, 2015 02:29
Show Gist options
  • Save lizell/5883886 to your computer and use it in GitHub Desktop.
Save lizell/5883886 to your computer and use it in GitHub Desktop.
Emergency stop and land for the AR Drone 2.0 using node.js
process.on('SIGINT', function() {
console.log('Got SIGINT. Stopping and landing.');
if (simulation) {
process.exit();
} else {
client.stop();
client.land(function() { process.exit(); });
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment