Last active
December 19, 2015 02:29
-
-
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
This file contains hidden or 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
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