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))
 
list 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)
 
list f = filenames[fi]
 
 f_out = open(args.output, 'w')
 
 fext
 
list field_types = []
 
list fields = []
 
def 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

◆ add_data()

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

Definition at line 222 of file mavgraph.py.

◆ plotit()

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.

◆ process_file()

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

Definition at line 251 of file mavgraph.py.

Variable Documentation

◆ action

pymavlink.tools.mavgraph.action

Definition at line 158 of file mavgraph.py.

◆ args

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

Definition at line 175 of file mavgraph.py.

◆ axes

list pymavlink.tools.mavgraph.axes = []

Definition at line 210 of file mavgraph.py.

◆ bbox_inches

pymavlink.tools.mavgraph.bbox_inches

Definition at line 317 of file mavgraph.py.

◆ caps

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

Definition at line 214 of file mavgraph.py.

◆ col

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

Definition at line 296 of file mavgraph.py.

◆ colors

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.

◆ colourmap

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.

◆ default

pymavlink.tools.mavgraph.default

Definition at line 160 of file mavgraph.py.

◆ dest

pymavlink.tools.mavgraph.dest

Definition at line 158 of file mavgraph.py.

◆ dpi

pymavlink.tools.mavgraph.dpi

Definition at line 317 of file mavgraph.py.

◆ edge_colour

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

Definition at line 56 of file mavgraph.py.

◆ f

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

Definition at line 284 of file mavgraph.py.

◆ f_out

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

Definition at line 312 of file mavgraph.py.

◆ fext

pymavlink.tools.mavgraph.fext

Definition at line 308 of file mavgraph.py.

◆ field_types

list pymavlink.tools.mavgraph.field_types = []

Definition at line 202 of file mavgraph.py.

◆ fields

list pymavlink.tools.mavgraph.fields = []

Definition at line 194 of file mavgraph.py.

◆ fig

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

Definition at line 299 of file mavgraph.py.

◆ filenames

list pymavlink.tools.mavgraph.filenames = []

Definition at line 193 of file mavgraph.py.

◆ first_only

list pymavlink.tools.mavgraph.first_only = []

Definition at line 211 of file mavgraph.py.

◆ float

pymavlink.tools.mavgraph.float

Definition at line 173 of file mavgraph.py.

◆ fname

pymavlink.tools.mavgraph.fname

Definition at line 308 of file mavgraph.py.

◆ help

pymavlink.tools.mavgraph.help

Definition at line 158 of file mavgraph.py.

◆ highest_x

pymavlink.tools.mavgraph.highest_x = None

Definition at line 59 of file mavgraph.py.

◆ html

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

Definition at line 311 of file mavgraph.py.

◆ input

pymavlink.tools.mavgraph.input = raw_input

Definition at line 25 of file mavgraph.py.

◆ lab

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

Definition at line 292 of file mavgraph.py.

◆ labels

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

Definition at line 273 of file mavgraph.py.

◆ loc

pymavlink.tools.mavgraph.loc

Definition at line 316 of file mavgraph.py.

◆ lowest_x

pymavlink.tools.mavgraph.lowest_x = None

Definition at line 58 of file mavgraph.py.

◆ metavar

pymavlink.tools.mavgraph.metavar

Definition at line 174 of file mavgraph.py.

◆ modes

list pymavlink.tools.mavgraph.modes = []

Definition at line 209 of file mavgraph.py.

◆ msg_types

pymavlink.tools.mavgraph.msg_types = set()

Definition at line 200 of file mavgraph.py.

◆ multiplier

list pymavlink.tools.mavgraph.multiplier = []

Definition at line 201 of file mavgraph.py.

◆ nargs

pymavlink.tools.mavgraph.nargs

Definition at line 174 of file mavgraph.py.

◆ None

pymavlink.tools.mavgraph.None

Definition at line 160 of file mavgraph.py.

◆ output

pymavlink.tools.mavgraph.output

Definition at line 317 of file mavgraph.py.

◆ parser

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

Definition at line 156 of file mavgraph.py.

◆ prop

pymavlink.tools.mavgraph.prop

Definition at line 316 of file mavgraph.py.

◆ re_caps

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

Definition at line 212 of file mavgraph.py.

◆ timeshift

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

Definition at line 281 of file mavgraph.py.

◆ type

pymavlink.tools.mavgraph.type

Definition at line 173 of file mavgraph.py.

◆ x

list pymavlink.tools.mavgraph.x = []

Definition at line 207 of file mavgraph.py.

◆ y

list pymavlink.tools.mavgraph.y = []

Definition at line 208 of file mavgraph.py.



mavlink
Author(s): Lorenz Meier
autogenerated on Fri Aug 2 2019 03:39:47