Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/m/a/mavlink-HEAD/pymavlink/tools/mavflighttime.py   mavlink(Download)
 
from pymavlink import mavutil
from pymavlink.mavextra import distance_two
 
if len(args) < 1:
 
        if last_msg is not None:
            total_dist += distance_two(last_msg, m)
        last_msg = m
    return (total_time, total_dist)