def mavlink_packet(self, m):
        '''get time from mavlink ATTITUDE'''
        if m.get_type() == 'GLOBAL_POSITION_INT':
            if abs(m.lat) < 1000 and abs(m.lon) < 1000:
                return
            self.vehicle_pos = VehiclePos(m)
def mavlink_packet ( self , m ) : if m . get_type ( ) == 'GLOBAL_POSITION_INT' : if abs ( m . lat ) < 1000 and abs ( m . lon ) < 1000 : return self . vehicle_pos = VehiclePos ( m )
get time from mavlink ATTITUDE