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 | |
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)
def pymavlink.tools.mavlogdump.match_type | ( | mtype, | |
patterns | |||
) |
return True if mtype matches pattern
Definition at line 86 of file mavlogdump.py.
pymavlink.tools.mavlogdump.action |
Definition at line 25 of file mavlogdump.py.
pymavlink.tools.mavlogdump.args = parser.parse_args() |
Definition at line 48 of file mavlogdump.py.
pymavlink.tools.mavlogdump.available_types = set() |
Definition at line 124 of file mavlogdump.py.
list pymavlink.tools.mavlogdump.csv_out = ["" for x in fields] |
Definition at line 112 of file mavlogdump.py.
pymavlink.tools.mavlogdump.csv_sep |
Definition at line 84 of file mavlogdump.py.
int pymavlink.tools.mavlogdump.currentOffset = 1 |
Definition at line 98 of file mavlogdump.py.
pymavlink.tools.mavlogdump.data = m.to_dict() |
Definition at line 201 of file mavlogdump.py.
pymavlink.tools.mavlogdump.default |
Definition at line 29 of file mavlogdump.py.
pymavlink.tools.mavlogdump.dest |
Definition at line 25 of file mavlogdump.py.
pymavlink.tools.mavlogdump.ext = os.path.splitext(filename)[1] |
Definition at line 78 of file mavlogdump.py.
list pymavlink.tools.mavlogdump.fields = ['timestamp'] |
Definition at line 94 of file mavlogdump.py.
pymavlink.tools.mavlogdump.filename = args.log |
Definition at line 59 of file mavlogdump.py.
pymavlink.tools.mavlogdump.help |
Definition at line 25 of file mavlogdump.py.
pymavlink.tools.mavlogdump.int |
Definition at line 43 of file mavlogdump.py.
pymavlink.tools.mavlogdump.isbin = extin['.bin', '.BIN', '.px4log'] |
Definition at line 79 of file mavlogdump.py.
pymavlink.tools.mavlogdump.islog = extin['.log', '.LOG'] |
Definition at line 80 of file mavlogdump.py.
pymavlink.tools.mavlogdump.istlog = extin['.tlog', '.TLOG'] |
Definition at line 81 of file mavlogdump.py.
pymavlink.tools.mavlogdump.last_timestamp = None |
Definition at line 121 of file mavlogdump.py.
pymavlink.tools.mavlogdump.m = mlog.recv_match(blocking=args.follow, type=match_types) |
Definition at line 139 of file mavlogdump.py.
list pymavlink.tools.mavlogdump.match_types = None |
Definition at line 127 of file mavlogdump.py.
dictionary pymavlink.tools.mavlogdump.meta = {"type": m.get_type(), "timestamp": timestamp} |
Definition at line 212 of file mavlogdump.py.
pymavlink.tools.mavlogdump.metavar |
Definition at line 47 of file mavlogdump.py.
pymavlink.tools.mavlogdump.mlog |
Definition at line 60 of file mavlogdump.py.
list pymavlink.tools.mavlogdump.newData = [str(data[y]) if y != "timestamp" else "" for y in fields] |
Definition at line 229 of file mavlogdump.py.
pymavlink.tools.mavlogdump.None |
Definition at line 29 of file mavlogdump.py.
pymavlink.tools.mavlogdump.nottypes = args.nottypes |
Definition at line 74 of file mavlogdump.py.
dictionary pymavlink.tools.mavlogdump.offsets = {} |
Definition at line 95 of file mavlogdump.py.
dictionary pymavlink.tools.mavlogdump.outMsg = {"meta": meta, "data": data} |
Definition at line 216 of file mavlogdump.py.
pymavlink.tools.mavlogdump.output = None |
Definition at line 66 of file mavlogdump.py.
pymavlink.tools.mavlogdump.parser = ArgumentParser(description=__doc__) |
Definition at line 23 of file mavlogdump.py.
string pymavlink.tools.mavlogdump.s = "%s.%02u: %s" |
Definition at line 247 of file mavlogdump.py.
Definition at line 158 of file mavlogdump.py.
pymavlink.tools.mavlogdump.type = m.get_type() |
Definition at line 43 of file mavlogdump.py.
string pymavlink.tools.mavlogdump.typeClass = "MAVLink_{0}_message" |
Definition at line 101 of file mavlogdump.py.
pymavlink.tools.mavlogdump.types = args.types |
Definition at line 70 of file mavlogdump.py.