bebop_autonomy icon indicating copy to clipboard operation
bebop_autonomy copied to clipboard

Bebop2 doesn't give me the GPS after taking off.

Open akhkh opened this issue 8 years ago • 2 comments

Hi.

I made my own navigation code that subscribe "/bebop/fix" topic.

It always works when bebop2 is not flying. But after bebop2 taking off, the data (latitude, longitude, altitude) is fixed. ("/bebop/fix" topic) I can subscribe the fixed GPS data, but it doesn't change.

I thought that ardrone3_pilotingstate_positionchanged_ptr does not change when bebop2 is flying.

The part is that bebop_driver/src/bebop_driver_nodelet, line 563. "gps_state_ptr = bebop_ptr_->ardrone3_pilotingstate_positionchanged_ptr->GetDataCstPtr(); "

Of course, I can get the recent GPS data after landing. How can I get the recent GPS data when bebop2 is flying?

akhkh avatar Nov 20 '17 14:11 akhkh

The /bebop/fix topic reports the home position of the drone used for Return Home functionality, of course it will record the latest TakeOff position as its home position.

If you want to read the GPS data you should subscribe to /bebop/states/ardrone3/PilotingState/PositionChanged topic which reports the current GPS data (while flying and landed) at 5Hz.

Note: If the number of satellites detected by GPS module is less than 3 the position data is invalid and equal to:

latitude: 500.0
longitude: 500.0
altitude: 500.0

You can check the number of detected satellites from /bebop/states/ardrone3/GPSState/NumberOfSatelliteChanged topic.

Voidminded avatar Feb 07 '18 00:02 Voidminded

@Voidminded Could you confirm that you are able to access the GPS data at 5Hz on the Bebop?

fabrizioschiano avatar Aug 28 '19 09:08 fabrizioschiano