hybridgroup / node-bebop

A Node.js client for controlling Parrot Bebop & Bebop2 quadcopters.
http://nodebebop.com
MIT License
146 stars 60 forks source link

Is the CameraOrientationChanged Event Missing? #38

Open jruesch opened 8 years ago

jruesch commented 8 years ago

Hi!

I don't seem to find an event which confirms the successful execution of the command Camera.Orientation(tilt, pan). Did I overlook it or is it missing?

The Parrot SDK API documentation states there is the 'Camera orientation changed' event after calling SetCameraOrientation(tilt, pan).

Any hints on how to implement that in case its missing? Need to extend constants.js and commands.js + bebop.js?

Thanks for your feedback. Cheers, Jonas

deadprogram commented 7 years ago

Hi, @jruesch all of the commands and events are defined in the commands.json file which is generated from the Parrot provided XML files.

https://github.com/hybridgroup/node-bebop/blob/master/lib/commands.json

Events do not need anything else, if they are defined in the JSON file, and the drone sends them, they get fired. However, seems like there is not an event with the exact name you are looking for. Maybe you want to listen for OrientationV2?