felixge / node-ar-drone

A node.js client for controlling Parrot AR Drone 2.0 quad-copters.
http://nodecopter.com/
MIT License
1.76k stars 427 forks source link

Add client.enableEmergency(); functionality to trigger emergency cutout #123

Open ColinCreamer opened 9 years ago

ColinCreamer commented 9 years ago

It would be great if this API provided an easy way to trigger an emergency cutout while flying, to make it dead drop from the air. Similar to how you can easily clear an emergency via client.disableEmergency(); having a client.enableEmergency(); function as well, would allow you to just as easily trigger an emergency.

wiseman commented 8 years ago

Good idea! It might be a little while before I have a chance to do this, do you want to give it a try?

Take a look at how the disableEmergency function is implemented, including the logic in _processNavdata.

Page 35 of the AR.Drone Developer Guide describes how to send the "emergency order"; It will be very similar to how we currently send the "disable emergency" command.