Did I find the right examples for you? yes no

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)

src/m/a/mavlink-HEAD/pymavlink/examples/wptogpx.py   mavlink(Download)
    count = 0
    for i in range(wp.count()):
        w = wp.wp(i)
        if w.frame == 3:
            w.z += wp.wp(0).z

src/c/u/cuav-1.3.1/cuav/lib/cuav_missiongenerator.py   cuav(Download)
 
        # search pattern
        MAVpointLoader.wp(endentry_wpnum).param1 = MAVpointLoader.count()
        for i in range(len(self.SearchPattern)):
            point = self.SearchPattern[i]
        # fixup jump waypoint numbers
        for wnum in entryjump:
            MAVpointLoader.wp(wnum).param1 = entry_wpnum
        for wnum in exitjump:
            MAVpointLoader.wp(wnum).param1 = exit_wpnum

src/c/u/cuav-HEAD/cuav/lib/cuav_missiongenerator.py   cuav(Download)
 
        # search pattern
        MAVpointLoader.wp(endentry_wpnum).param1 = MAVpointLoader.count()
        for i in range(len(self.SearchPattern)):
            point = self.SearchPattern[i]
        # fixup jump waypoint numbers
        for wnum in entryjump:
            MAVpointLoader.wp(wnum).param1 = entry_wpnum
        for wnum in exitjump:
            MAVpointLoader.wp(wnum).param1 = exit_wpnum

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)
 
    for i in range(1, wp.count()):
        w = wp.wp(i)
        if (w.x == 0 and w.y == 0) or w.command not in [mavutil.mavlink.MAV_CMD_NAV_WAYPOINT,
                                                        mavutil.mavlink.MAV_CMD_NAV_LOITER_UNLIM,

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)
 
    for i in range(1, wp.count()):
        w = wp.wp(i)
        if (w.x == 0 and w.y == 0) or w.command not in [mavutil.mavlink.MAV_CMD_NAV_WAYPOINT,
                                                        mavutil.mavlink.MAV_CMD_NAV_LOITER_UNLIM,