amymcgovern / pyparrot

Python interface for Parrot Drones
MIT License
274 stars 128 forks source link

Gps coordinate to start and end to make a fligth plan #156

Open kevin99j opened 5 years ago

kevin99j commented 5 years ago

Good day, and thanks for your work!! how I can make a fligth plan giving coordinates to start and end the fligth I am new in python and i cant understand how parse the sensor info or how that retrieve this info thanks for your reply, Kevin.

amymcgovern commented 5 years ago

the sensor info for the bebop is all in a dictionary. commonly used ones also have their own variable but everything is in a dictionary. So just print out the dictionary to find the key/values that you want and proceed with using those values. Most are updated at 10 Hz, which is the frequency that the firmware broadcasts them. bebop.sensors.sensors_dict is the name of the dictionary.

kevin99j commented 5 years ago

the sensor dictionary return { 'GpsLocationChanged_altitude_accuracy': 0, 'GpsLocationChanged_latitude': 500.0, 'PositionChanged_altitude': 500.0, 'GpsLocationChanged_longitude_accuracy': 0, 'AttitudeChanged_roll': 0.004713607951998711, 'PositionChanged_longitude': 500.0, 'PositionChanged_latitude': 500.0} how i can unlock gps to get this information, in the app free fligth pro i can get gps coordinates, and i want to get this info, can you help me please?

amymcgovern commented 5 years ago

Are you outside or inside? the GPS just needs to get a lock. It always starts at those coordinates but it will update when it gets a lock (which is automatic).

kevin99j commented 5 years ago

How can I update it? , the flight is outside but I always receive the same coordinates, can you show me a code fragment where you get the GPS information with real coordinates ?, I appreciate your help

amymcgovern commented 5 years ago

How are you accessing it? It changes every 0.1 of a second for me.