Route¶
-
class
wadl.lib.route.Route(cords, zone, home=None)¶ Bases:
objectA route of points
-
UTMcords¶ list of points in UTM
Type: list
-
GPScords¶ list of points in GPS WGS84
Type: list
Parameters: - cords (list) – list of UTM waypoints of a route
- home (list) – list of homes for the routes
- zone (tuple) – tuple of UTM zone (“number”, “N” or “S”)
-
check()¶ run a series of checks to see if this route is feasible
Returns: False if one of the length checks fail True otherwise
-
-
class
wadl.lib.route.RouteParameters(default=True)¶ Bases:
wadl.lib.parameters.ParametersParameter container for setting route parameters
Set parameters directly like how you would for a dictionary.
routeParameters = RouteParametersrouteParameters["Parameter"] = valueParameters: - limit (float) – route limit in seconds
- speed (float) – route speed over coverage area in meters/seconds
- altitude (float) – altitude above ground level of the coverage area in m
- xfer_speed (float) – speed for transfer segments in m/s
- xfer_altitude (float) – altitude for transfer segments in m
- xfer_ascend (float) – ascend rate in m/s
- xfer_decend (float) – descend rate in m/s
- land_altitude (float) – altitude before landing
-
class
wadl.lib.route.RouteSet(home, zone, routeParameters=None)¶ Bases:
objectcontainer to for a set of routes
-
routes¶ list of routes
Type: list
Parameters: - home (list) – list of homes for the routes
- zone (tuple) – tuple of UTM zone (“number”, “N” or “S”)
- routeParameters (RouteParameters) – desired parameters for the routes.
-
check(cords)¶ Builds the route from a UTM waypoint list and runs a series of checks to verify the route is viable.
- Args;
- cords (list): list of UTM waypoints
Returns: None if any check fails; the Route otherwise
-
write(pathDir)¶ writes the routes to a file
Parameters: pathDir (str) – location to save routes.
-