hybridgroup / node-bebop

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

I need to send my bebop 2 to a GPS point #28

Closed brunoua closed 8 years ago

brunoua commented 8 years ago

HI,

I nedd to send my bebop 2 to a GPS coordinate. Can i use this command " GPSSettings.sendControllerGPS(obj)"? I try this but nothing happens.

Regards, Bruno Barbosa

deadprogram commented 8 years ago

Hi, @brunoua the sendControllerGPS command is to tell the drone the location of the user for returning home during autonomous flight, not to tell the drone to navigate to that GPS location. According to Parrot docs:

Send controller GPS location

    Send controller GPS location:

deviceController->aRDrone3->sendGPSSettingsSendControllerGPS(deviceController->aRDrone3, (double)latitude, (double)longitude, (double)altitude, (double)horizontalAccuracy, (double)verticalAccuracy);

Send controller GPS location

    latitude (double): GPS latitude in decimal degrees
    longitude (double): GPS longitude in decimal degrees
    altitude (double): GPS altitude in meters
    horizontalAccuracy (double): Horizontal Accuracy in meter ; equal -1 if no horizontal Accuracy
    verticalAccuracy (double): Vertical Accuracy in meter ; equal -1 if no vertical Accuracy

The user location might be used in case of return home, according to the home type and the accuracy of the given position.
brunoua commented 8 years ago

Hi, @deadprogram the only way I have is with mavlink?

Thanks for available time

deadprogram commented 8 years ago

That is my understanding, yes.

deadprogram commented 8 years ago

Hi @brunoua we've just released v0.5.0 which has many improvements including the Mavlink stuff you were such a great help with. Please give it a try, and if needed reopen this issue. Thanks!