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 428 forks source link

Send specific altitude to the drone #121

Closed sulema closed 9 years ago

sulema commented 9 years ago

Hi,

I am new in this, and I want to give a specific altitude to the drone, I read the libraries that manage the data of navigation but I can not find the answer yet. I think that I need to send data to the ultrasonic but, what do you suggest to me??

Thank you.

eschnou commented 9 years ago

You can't do that with node-ar-drone alone. The only thing you can do is to provide a speed going up or down (just like someone pushing the throttle stick up or down). In order to maintain the altitude you need to add a control layer that observes the altitude navdata and perform adequate control (usually using a PID).

Have a look at https://github.com/eschnou/ardrone-autonomy, which do just that, and more, adding a simple control layer above node-ar-drone.

sulema commented 9 years ago

Thank you!

wiseman commented 9 years ago

Also see my answer at https://github.com/felixge/node-ar-drone/issues/116#issuecomment-91006554 for a crude solution.