Did I find the right examples for you? yes no

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)
load waypoints from a file.
returns number of waypoints loaded

src/m/a/mavlink-HEAD/pymavlink/examples/wptogpx.py   mavlink(Download)
def wp_to_gpx(infilename, outfilename):
    '''convert a wp file to a GPX file'''
 
    wp = mavwp.MAVWPLoader()
    wp.load(infilename)

src/c/u/cuav-1.3.1/cuav/tools/agl_mission.py   cuav(Download)
def fix_alt(filename, agl):
    '''fix AGL on mission'''
    wp = mavwp.MAVWPLoader()
    wp.load(filename)
    home = wp.wp(0)

src/c/u/cuav-HEAD/cuav/tools/agl_mission.py   cuav(Download)
def fix_alt(filename, agl):
    '''fix AGL on mission'''
    wp = mavwp.MAVWPLoader()
    wp.load(filename)
    home = wp.wp(0)

src/c/u/cuav-1.3.1/cuav/tools/geosearch.py   cuav(Download)
    from pymavlink import mavwp
    wp = mavwp.MAVWPLoader()
    wp.load(opts.mission)
    boundary = wp.polygon()
    slipmap.add_object(mp_slipmap.SlipPolygon('mission', boundary, layer=1,

src/c/u/cuav-HEAD/cuav/tools/geosearch.py   cuav(Download)
    from pymavlink import mavwp
    wp = mavwp.MAVWPLoader()
    wp.load(opts.mission)
    boundary = wp.polygon()
    slipmap.add_object(mp_slipmap.SlipPolygon('mission', boundary, layer=1,

src/m/a/MAVProxy-1.3.3/MAVProxy/tools/mavflightview.py   MAVProxy(Download)
    wp = mavwp.MAVWPLoader()
    if opts.mission is not None:
        wp.load(opts.mission)
    path = [[]]
    types = ['MISSION_ITEM']

src/m/a/MAVProxy-1.3.3/MAVProxy/modules/mavproxy_map/mp_slipmap.py   MAVProxy(Download)
        for file in opts.mission:
            wp = mavwp.MAVWPLoader()
            wp.load(file)
            boundary = wp.polygon()
            sm.add_object(SlipPolygon('mission-%s' % file, boundary, layer=1, linewidth=1, colour=(255,255,255)))

src/m/a/MAVProxy-HEAD/MAVProxy/modules/mavproxy_map/mp_slipmap.py   MAVProxy(Download)
        for file in opts.mission:
            wp = mavwp.MAVWPLoader()
            wp.load(file)
            boundary = wp.polygon()
            sm.add_object(SlipPolygon('mission-%s' % file, boundary, layer=1, linewidth=1, colour=(255,255,255)))

src/m/a/MAVProxy-HEAD/MAVProxy/tools/mavflightview.py   MAVProxy(Download)
    wp = mavwp.MAVWPLoader()
    if opts.mission is not None:
        wp.load(opts.mission)
    path = [[]]
    types = ['MISSION_ITEM']

src/m/a/MAVProxy-1.3.3/MAVProxy/modules/mavproxy_wp.py   MAVProxy(Download)
            waytxt = os.path.join(mpstate.status.logdir, 'way.txt')
            if os.path.exists(waytxt):
                self.wploader.load(waytxt)
                print("Loaded waypoints from %s" % waytxt)
 

  1 | 2  Next