Classes | Functions | Variables
pymavlink.DFReader Namespace Reference

Classes

class  DFFormat
 
class  DFMessage
 
class  DFReader
 
class  DFReader_binary
 
class  DFReader_text
 
class  DFReaderClock
 
class  DFReaderClock_gps_interpolated
 
class  DFReaderClock_msec
 
class  DFReaderClock_px4
 
class  DFReaderClock_usec
 

Functions

def DFReader_is_text_log (filename)
 
def null_term (str)
 
def to_string (s)
 
def u_ord (c)
 

Variables

 filename = sys.argv[1]
 
dictionary FORMAT_TO_STRUCT
 
 log = DFReader_text(filename)
 
 long = int
 
 m = log.recv_msg()
 
 profiler = LineProfiler()
 
bool use_profiler = False
 

Detailed Description

APM DataFlash log file reader

Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later

Partly based on SDLog2Parser by Anton Babushkin

Function Documentation

def pymavlink.DFReader.DFReader_is_text_log (   filename)
return True if a file appears to be a valid text log

Definition at line 902 of file DFReader.py.

def pymavlink.DFReader.null_term (   str)
null terminate a string

Definition at line 131 of file DFReader.py.

def pymavlink.DFReader.to_string (   s)
desperate attempt to convert a string regardless of what garbage we get

Definition at line 106 of file DFReader.py.

def pymavlink.DFReader.u_ord (   c)

Definition at line 53 of file DFReader.py.

Variable Documentation

pymavlink.DFReader.filename = sys.argv[1]

Definition at line 1101 of file DFReader.py.

dictionary pymavlink.DFReader.FORMAT_TO_STRUCT
Initial value:
1 = {
2  "a": ("64s", None, str),
3  "b": ("b", None, int),
4  "B": ("B", None, int),
5  "h": ("h", None, int),
6  "H": ("H", None, int),
7  "i": ("i", None, int),
8  "I": ("I", None, int),
9  "f": ("f", None, float),
10  "n": ("4s", None, str),
11  "N": ("16s", None, str),
12  "Z": ("64s", None, str),
13  "c": ("h", 0.01, float),
14  "C": ("H", 0.01, float),
15  "e": ("i", 0.01, float),
16  "E": ("I", 0.01, float),
17  "L": ("i", 1.0e-7, float),
18  "d": ("d", None, float),
19  "M": ("b", None, int),
20  "q": ("q", None, long), # Backward compat
21  "Q": ("Q", None, long), # Backward compat
22  }

Definition at line 30 of file DFReader.py.

pymavlink.DFReader.log = DFReader_text(filename)

Definition at line 1103 of file DFReader.py.

pymavlink.DFReader.long = int

Definition at line 28 of file DFReader.py.

pymavlink.DFReader.m = log.recv_msg()

Definition at line 1107 of file DFReader.py.

pymavlink.DFReader.profiler = LineProfiler()

Definition at line 1095 of file DFReader.py.

bool pymavlink.DFReader.use_profiler = False

Definition at line 1092 of file DFReader.py.



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