GPS

AirGen contains support for a GPS sensor that returns the current geo location of the vehicle. The GPS sensor is enabled by default, but can be disabled through the Sensors tab in the custom session configuration panel

The GPS data is available through the getGpsData() method.

client = airgen.MultirotorClient()
gps_data = client.getGpsData()
latitude = gps_data.gnss.geopoint.latitude
longitude = gps_data.gnss.geopoint.longitude
altitude = gps_data.gnss.geopoint.altitude