5 def handler(event, sender, data, **args):
7 if event
is drone.EVENT_FLIGHT_DATA:
14 drone.subscribe(drone.EVENT_FLIGHT_DATA, handler)
17 drone.wait_for_connection(60.0)
24 except Exception
as ex:
29 if __name__ ==
'__main__':
def handler(event, sender, data, args)