Functions | Variables
pymavlink.tools.mavgraph Namespace Reference

Functions

def add_data (t, msg, vars, flightmode)
 
def plotit (x, y, fields, colors=[])
 
def process_file (filename, timeshift)
 

Variables

 action
 
 args = parser.parse_args()
 
list axes = []
 
 bbox_inches
 
 caps = set(re.findall(re_caps, f))
 
 col = colors[:]
 
list colors = [ 'red', 'green', 'blue', 'orange', 'olive', 'black', 'grey', 'yellow', 'brown', 'darkcyan', 'cornflowerblue', 'darkmagenta', 'deeppink', 'darkred']
 
dictionary colourmap
 
 default
 
 dest
 
 dpi
 
tuple edge_colour = (0.1, 0.1, 0.1)
 
 f = filenames[fi]
 
 f_out = open(args.output, 'w')
 
 fext
 
list field_types = []
 
list fields = []
 
 fig = plotit(x, y, lab, colors=col)
 
list filenames = []
 
list first_only = []
 
 float
 
 fname
 
 help
 
 highest_x = None
 
 html = mpld3.fig_to_html(fig)
 
 input = raw_input
 
 lab = labels[fi*len(fields):(fi+1)*len(fields)]
 
 labels = args.labels.split(',')
 
 loc
 
 lowest_x = None
 
 metavar
 
list modes = []
 
 msg_types = set()
 
list multiplier = []
 
 nargs
 
 None
 
 output
 
 parser = ArgumentParser(description=__doc__)
 
 prop
 
 re_caps = re.compile('[A-Z_][A-Z0-9_]+')
 
 timeshift = args.timeshift
 
 type
 
list x = []
 
list y = []
 

Detailed Description

graph a MAVLink log file
Andrew Tridgell August 2011

Function Documentation

def pymavlink.tools.mavgraph.add_data (   t,
  msg,
  vars,
  flightmode 
)
add some data

Definition at line 222 of file mavgraph.py.

def pymavlink.tools.mavgraph.plotit (   x,
  y,
  fields,
  colors = [] 
)
plot a set of graphs using date for x axis

Definition at line 61 of file mavgraph.py.

def pymavlink.tools.mavgraph.process_file (   filename,
  timeshift 
)
process one file

Definition at line 251 of file mavgraph.py.

Variable Documentation

pymavlink.tools.mavgraph.action

Definition at line 158 of file mavgraph.py.

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

Definition at line 175 of file mavgraph.py.

list pymavlink.tools.mavgraph.axes = []

Definition at line 210 of file mavgraph.py.

pymavlink.tools.mavgraph.bbox_inches

Definition at line 317 of file mavgraph.py.

pymavlink.tools.mavgraph.caps = set(re.findall(re_caps, f))

Definition at line 214 of file mavgraph.py.

pymavlink.tools.mavgraph.col = colors[:]

Definition at line 296 of file mavgraph.py.

list pymavlink.tools.mavgraph.colors = [ 'red', 'green', 'blue', 'orange', 'olive', 'black', 'grey', 'yellow', 'brown', 'darkcyan', 'cornflowerblue', 'darkmagenta', 'deeppink', 'darkred']

Definition at line 204 of file mavgraph.py.

dictionary pymavlink.tools.mavgraph.colourmap
Initial value:
1 = {
2  'apm' : {
3  'MANUAL' : (1.0, 0, 0),
4  'AUTO' : ( 0, 1.0, 0),
5  'LOITER' : ( 0, 0, 1.0),
6  'FBWA' : (1.0, 0.5, 0),
7  'RTL' : ( 1, 0, 0.5),
8  'STABILIZE' : (0.5, 1.0, 0),
9  'LAND' : ( 0, 1.0, 0.5),
10  'STEERING' : (0.5, 0, 1.0),
11  'HOLD' : ( 0, 0.5, 1.0),
12  'ALT_HOLD' : (1.0, 0.5, 0.5),
13  'CIRCLE' : (0.5, 1.0, 0.5),
14  'POSITION' : (1.0, 0.0, 1.0),
15  'GUIDED' : (0.5, 0.5, 1.0),
16  'ACRO' : (1.0, 1.0, 0),
17  'CRUISE' : ( 0, 1.0, 1.0)
18  },
19  'px4' : {
20  'MANUAL' : (1.0, 0, 0),
21  'SEATBELT' : ( 0.5, 0.5, 0),
22  'EASY' : ( 0, 1.0, 0),
23  'AUTO' : ( 0, 0, 1.0),
24  'UNKNOWN' : ( 1.0, 1.0, 1.0)
25  }
26  }

Definition at line 29 of file mavgraph.py.

pymavlink.tools.mavgraph.default

Definition at line 160 of file mavgraph.py.

pymavlink.tools.mavgraph.dest

Definition at line 158 of file mavgraph.py.

pymavlink.tools.mavgraph.dpi

Definition at line 317 of file mavgraph.py.

tuple pymavlink.tools.mavgraph.edge_colour = (0.1, 0.1, 0.1)

Definition at line 56 of file mavgraph.py.

pymavlink.tools.mavgraph.f = filenames[fi]

Definition at line 284 of file mavgraph.py.

pymavlink.tools.mavgraph.f_out = open(args.output, 'w')

Definition at line 312 of file mavgraph.py.

pymavlink.tools.mavgraph.fext

Definition at line 308 of file mavgraph.py.

list pymavlink.tools.mavgraph.field_types = []

Definition at line 202 of file mavgraph.py.

list pymavlink.tools.mavgraph.fields = []

Definition at line 194 of file mavgraph.py.

pymavlink.tools.mavgraph.fig = plotit(x, y, lab, colors=col)

Definition at line 299 of file mavgraph.py.

list pymavlink.tools.mavgraph.filenames = []

Definition at line 193 of file mavgraph.py.

list pymavlink.tools.mavgraph.first_only = []

Definition at line 211 of file mavgraph.py.

pymavlink.tools.mavgraph.float

Definition at line 173 of file mavgraph.py.

pymavlink.tools.mavgraph.fname

Definition at line 308 of file mavgraph.py.

pymavlink.tools.mavgraph.help

Definition at line 158 of file mavgraph.py.

pymavlink.tools.mavgraph.highest_x = None

Definition at line 59 of file mavgraph.py.

pymavlink.tools.mavgraph.html = mpld3.fig_to_html(fig)

Definition at line 311 of file mavgraph.py.

pymavlink.tools.mavgraph.input = raw_input

Definition at line 25 of file mavgraph.py.

pymavlink.tools.mavgraph.lab = labels[fi*len(fields):(fi+1)*len(fields)]

Definition at line 292 of file mavgraph.py.

pymavlink.tools.mavgraph.labels = args.labels.split(',')

Definition at line 273 of file mavgraph.py.

pymavlink.tools.mavgraph.loc

Definition at line 316 of file mavgraph.py.

pymavlink.tools.mavgraph.lowest_x = None

Definition at line 58 of file mavgraph.py.

pymavlink.tools.mavgraph.metavar

Definition at line 174 of file mavgraph.py.

list pymavlink.tools.mavgraph.modes = []

Definition at line 209 of file mavgraph.py.

pymavlink.tools.mavgraph.msg_types = set()

Definition at line 200 of file mavgraph.py.

list pymavlink.tools.mavgraph.multiplier = []

Definition at line 201 of file mavgraph.py.

pymavlink.tools.mavgraph.nargs

Definition at line 174 of file mavgraph.py.

pymavlink.tools.mavgraph.None

Definition at line 160 of file mavgraph.py.

pymavlink.tools.mavgraph.output

Definition at line 317 of file mavgraph.py.

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

Definition at line 156 of file mavgraph.py.

pymavlink.tools.mavgraph.prop

Definition at line 316 of file mavgraph.py.

pymavlink.tools.mavgraph.re_caps = re.compile('[A-Z_][A-Z0-9_]+')

Definition at line 212 of file mavgraph.py.

int pymavlink.tools.mavgraph.timeshift = args.timeshift

Definition at line 281 of file mavgraph.py.

pymavlink.tools.mavgraph.type

Definition at line 173 of file mavgraph.py.

list pymavlink.tools.mavgraph.x = []

Definition at line 207 of file mavgraph.py.

list pymavlink.tools.mavgraph.y = []

Definition at line 208 of file mavgraph.py.



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