Functions | Variables
pymavlink.tools.mavlogdump Namespace Reference

Functions

def match_type (mtype, patterns)
 

Variables

 action
 
 args = parser.parse_args()
 
 available_types = set()
 
list csv_out = ["" for x in fields]
 
 csv_sep
 
int currentOffset = 1
 
 data = m.to_dict()
 
 default
 
 dest
 
 ext = os.path.splitext(filename)[1]
 
list fields = ['timestamp']
 
 filename = args.log
 
 help
 
 int
 
 isbin = extin['.bin', '.BIN', '.px4log']
 
 islog = extin['.log', '.LOG']
 
 istlog = extin['.tlog', '.TLOG']
 
 last_timestamp = None
 
 m = mlog.recv_match(blocking=args.follow, type=match_types)
 
 match_types = None
 
dictionary meta = {"type": m.get_type(), "timestamp": timestamp}
 
 metavar
 
 mlog
 
list newData = [str(data[y]) if y != "timestamp" else "" for y in fields]
 
 None
 
 nottypes = args.nottypes
 
dictionary offsets = {}
 
dictionary outMsg = {"meta": meta, "data": data}
 
 output = None
 
 parser = ArgumentParser(description=__doc__)
 
string s = "%s.%02u: %s"
 
 timestamp = getattr(m, '_timestamp', None)
 
 type = m.get_type()
 
string typeClass = "MAVLink_{0}_message"
 
 types = args.types
 

Detailed Description

example program that dumps a Mavlink log file. The log file is
assumed to be in the format that qgroundcontrol uses, which consists
of a series of MAVLink packets, each with a 64 bit timestamp
header. The timestamp is in microseconds since 1970 (unix epoch)

Function Documentation

def pymavlink.tools.mavlogdump.match_type (   mtype,
  patterns 
)
return True if mtype matches pattern

Definition at line 87 of file mavlogdump.py.

Variable Documentation

pymavlink.tools.mavlogdump.action

Definition at line 26 of file mavlogdump.py.

pymavlink.tools.mavlogdump.args = parser.parse_args()

Definition at line 49 of file mavlogdump.py.

pymavlink.tools.mavlogdump.available_types = set()

Definition at line 125 of file mavlogdump.py.

list pymavlink.tools.mavlogdump.csv_out = ["" for x in fields]

Definition at line 113 of file mavlogdump.py.

pymavlink.tools.mavlogdump.csv_sep

Definition at line 85 of file mavlogdump.py.

int pymavlink.tools.mavlogdump.currentOffset = 1

Definition at line 99 of file mavlogdump.py.

pymavlink.tools.mavlogdump.data = m.to_dict()

Definition at line 206 of file mavlogdump.py.

pymavlink.tools.mavlogdump.default

Definition at line 30 of file mavlogdump.py.

pymavlink.tools.mavlogdump.dest

Definition at line 26 of file mavlogdump.py.

pymavlink.tools.mavlogdump.ext = os.path.splitext(filename)[1]

Definition at line 79 of file mavlogdump.py.

list pymavlink.tools.mavlogdump.fields = ['timestamp']

Definition at line 95 of file mavlogdump.py.

pymavlink.tools.mavlogdump.filename = args.log

Definition at line 60 of file mavlogdump.py.

pymavlink.tools.mavlogdump.help

Definition at line 26 of file mavlogdump.py.

pymavlink.tools.mavlogdump.int

Definition at line 44 of file mavlogdump.py.

pymavlink.tools.mavlogdump.isbin = extin['.bin', '.BIN', '.px4log']

Definition at line 80 of file mavlogdump.py.

pymavlink.tools.mavlogdump.islog = extin['.log', '.LOG']

Definition at line 81 of file mavlogdump.py.

pymavlink.tools.mavlogdump.istlog = extin['.tlog', '.TLOG']

Definition at line 82 of file mavlogdump.py.

pymavlink.tools.mavlogdump.last_timestamp = None

Definition at line 122 of file mavlogdump.py.

pymavlink.tools.mavlogdump.m = mlog.recv_match(blocking=args.follow, type=match_types)

Definition at line 144 of file mavlogdump.py.

list pymavlink.tools.mavlogdump.match_types = None

Definition at line 128 of file mavlogdump.py.

dictionary pymavlink.tools.mavlogdump.meta = {"type": m.get_type(), "timestamp": timestamp}

Definition at line 217 of file mavlogdump.py.

pymavlink.tools.mavlogdump.metavar

Definition at line 48 of file mavlogdump.py.

pymavlink.tools.mavlogdump.mlog
Initial value:
1 = mavutil.mavlink_connection(filename, planner_format=args.planner,
2  notimestamps=args.notimestamps,
3  robust_parsing=args.robust,
4  dialect=args.dialect,
5  zero_time_base=args.zero_time_base)

Definition at line 61 of file mavlogdump.py.

list pymavlink.tools.mavlogdump.newData = [str(data[y]) if y != "timestamp" else "" for y in fields]

Definition at line 239 of file mavlogdump.py.

pymavlink.tools.mavlogdump.None

Definition at line 30 of file mavlogdump.py.

pymavlink.tools.mavlogdump.nottypes = args.nottypes

Definition at line 75 of file mavlogdump.py.

dictionary pymavlink.tools.mavlogdump.offsets = {}

Definition at line 96 of file mavlogdump.py.

dictionary pymavlink.tools.mavlogdump.outMsg = {"meta": meta, "data": data}

Definition at line 226 of file mavlogdump.py.

pymavlink.tools.mavlogdump.output = None

Definition at line 67 of file mavlogdump.py.

pymavlink.tools.mavlogdump.parser = ArgumentParser(description=__doc__)

Definition at line 24 of file mavlogdump.py.

string pymavlink.tools.mavlogdump.s = "%s.%02u: %s"

Definition at line 257 of file mavlogdump.py.

pymavlink.tools.mavlogdump.timestamp = getattr(m, '_timestamp', None)

Definition at line 163 of file mavlogdump.py.

pymavlink.tools.mavlogdump.type = m.get_type()

Definition at line 44 of file mavlogdump.py.

string pymavlink.tools.mavlogdump.typeClass = "MAVLink_{0}_message"

Definition at line 102 of file mavlogdump.py.

pymavlink.tools.mavlogdump.types = args.types

Definition at line 71 of file mavlogdump.py.



mavlink
Author(s): Lorenz Meier
autogenerated on Sun Jul 7 2019 03:22:08