Functions | Variables
pymavlink.tools.mavkml Namespace Reference

Functions

def add_data (t, msg, msg_types, vars, fields, field_types, position_field_type)
 
def add_to_linestring (position_data, kml_linestring)
 
def process_file (filename, source)
 
def save_kml (filename)
 
def sniff_field_spelling (mlog, source)
 

Variables

 action
 
 args = parser.parse_args()
 
list colors
 
 default
 
 dest
 
 f = filenames[fi]
 
list filenames = []
 
 help
 
 kml = simplekml.Kml()
 
list kml_linestrings = []
 
string mainstate_field = 'STAT.MainState'
 
 metavar
 
 nargs
 
 parser = ArgumentParser(description=__doc__)
 
list position_field_types
 

Detailed Description

simple kml export for logfiles
Thomas Gubler <thomasgubler@gmail.com>

Function Documentation

def pymavlink.tools.mavkml.add_data (   t,
  msg,
  msg_types,
  vars,
  fields,
  field_types,
  position_field_type 
)
add some data

Definition at line 50 of file mavkml.py.

def pymavlink.tools.mavkml.add_to_linestring (   position_data,
  kml_linestring 
)
add a point to the kml file

Definition at line 34 of file mavkml.py.

def pymavlink.tools.mavkml.process_file (   filename,
  source 
)
process one file

Definition at line 122 of file mavkml.py.

def pymavlink.tools.mavkml.save_kml (   filename)
saves the kml file

Definition at line 43 of file mavkml.py.

def pymavlink.tools.mavkml.sniff_field_spelling (   mlog,
  source 
)
attempt to detect whether APM or PX4 attributes names are in use

Definition at line 157 of file mavkml.py.

Variable Documentation

pymavlink.tools.mavkml.action

Definition at line 172 of file mavkml.py.

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

Definition at line 188 of file mavkml.py.

list pymavlink.tools.mavkml.colors
Initial value:
1 = [simplekml.Color.red, simplekml.Color.green, simplekml.Color.blue,
2  simplekml.Color.violet, simplekml.Color.yellow, simplekml.Color.orange,
3  simplekml.Color.burlywood, simplekml.Color.azure, simplekml.Color.lightblue,
4  simplekml.Color.lawngreen, simplekml.Color.indianred, simplekml.Color.hotpink]

Definition at line 25 of file mavkml.py.

pymavlink.tools.mavkml.default

Definition at line 173 of file mavkml.py.

pymavlink.tools.mavkml.dest

Definition at line 171 of file mavkml.py.

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

Definition at line 200 of file mavkml.py.

list pymavlink.tools.mavkml.filenames = []

Definition at line 190 of file mavkml.py.

pymavlink.tools.mavkml.help

Definition at line 172 of file mavkml.py.

pymavlink.tools.mavkml.kml = simplekml.Kml()

Definition at line 30 of file mavkml.py.

list pymavlink.tools.mavkml.kml_linestrings = []

Definition at line 31 of file mavkml.py.

string pymavlink.tools.mavkml.mainstate_field = 'STAT.MainState'

Definition at line 19 of file mavkml.py.

pymavlink.tools.mavkml.metavar

Definition at line 186 of file mavkml.py.

pymavlink.tools.mavkml.nargs

Definition at line 186 of file mavkml.py.

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

Definition at line 170 of file mavkml.py.

list pymavlink.tools.mavkml.position_field_types
Initial value:
1 = [ # Order must be lon, lat, alt to match KML
2  ['Lon', 'Lat', 'Alt'], # PX4
3  ['Lng', 'Lat', 'Alt'] # APM > 3
4 ]

Definition at line 20 of file mavkml.py.



mavlink
Author(s): Lorenz Meier
autogenerated on Sun Apr 7 2019 02:06:02