Public Member Functions | Public Attributes | Private Member Functions
pymavlink.mavwp.MAVWPLoader Class Reference

List of all members.

Public Member Functions

def __init__
def add
def add_latlonalt
def clear
def count
def insert
def is_location_command
def load
def polygon
def polygon_list
def reindex
def remove
def save
def save_as_pb
def set
def view_indexes
def view_list
def wp
def wp_is_loiter

Public Attributes

 last_change
 target_component
 target_system
 wpoints

Private Member Functions

def _read_waypoints_pb_110
def _read_waypoints_v100
def _read_waypoints_v110

Detailed Description

MAVLink waypoint loader

Definition at line 23 of file mavwp.py.


Constructor & Destructor Documentation

def pymavlink.mavwp.MAVWPLoader.__init__ (   self,
  target_system = 0,
  target_component = 0 
)

Definition at line 25 of file mavwp.py.


Member Function Documentation

def pymavlink.mavwp.MAVWPLoader._read_waypoints_pb_110 (   self,
  file 
) [private]

Definition at line 207 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader._read_waypoints_v100 (   self,
  file 
) [private]
read a version 100 waypoint

Definition at line 123 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader._read_waypoints_v110 (   self,
  file 
) [private]
read a version 110 waypoint

Definition at line 170 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.add (   self,
  w,
  comment = '' 
)
add a waypoint

Definition at line 56 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.add_latlonalt (   self,
  lat,
  lon,
  altitude,
  terrain_alt = False 
)
add a point via latitude/longitude/altitude

Definition at line 87 of file mavwp.py.

clear waypoint list

Definition at line 118 of file mavwp.py.

return number of waypoints

Definition at line 31 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.insert (   self,
  idx,
  w,
  comment = '' 
)
insert a waypoint

Definition at line 65 of file mavwp.py.

see if cmd is a MAV_CMD with a latitide/longitude.
We check if it has Latitude and Longitude params in the right indexes

Definition at line 317 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.load (   self,
  filename 
)
load waypoints from a file.
returns number of waypoints loaded

Definition at line 263 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.polygon (   self,
  done = None 
)
return a polygon for the waypoints

Definition at line 361 of file mavwp.py.

return a list of polygons for the waypoints

Definition at line 370 of file mavwp.py.

reindex waypoints

Definition at line 80 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.remove (   self,
  w 
)
remove a waypoint

Definition at line 112 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.save (   self,
  filename 
)
save waypoints to a file

Definition at line 304 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.save_as_pb (   self,
  filename 
)

Definition at line 284 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.set (   self,
  w,
  idx 
)
set a waypoint

Definition at line 102 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.view_indexes (   self,
  done = None 
)
return a list waypoint indexes in view order

Definition at line 330 of file mavwp.py.

return a list of polygon indexes lists for the waypoints

Definition at line 380 of file mavwp.py.

def pymavlink.mavwp.MAVWPLoader.wp (   self,
  i 
)
return a waypoint

Definition at line 35 of file mavwp.py.

return true if waypoint is a loiter waypoint

Definition at line 44 of file mavwp.py.


Member Data Documentation

Definition at line 25 of file mavwp.py.

Definition at line 25 of file mavwp.py.

Definition at line 25 of file mavwp.py.

Definition at line 25 of file mavwp.py.


The documentation for this class was generated from the following file:


mavlink
Author(s): Lorenz Meier
autogenerated on Wed Sep 9 2015 18:06:18