From b9f9b4fbc6ec04f1f97e8128ad6b53e5b37e8d11 Mon Sep 17 00:00:00 2001 From: Niraj Adhikari Date: Mon, 23 Dec 2024 17:10:47 +0545 Subject: [PATCH] update: waypoint mode args added --- drone_flightplan/waypoints.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drone_flightplan/waypoints.py b/drone_flightplan/waypoints.py index 3d5b699..d02ddb8 100644 --- a/drone_flightplan/waypoints.py +++ b/drone_flightplan/waypoints.py @@ -476,6 +476,12 @@ def main(): type=validate_coordinates, help="Take off Point Coordinates in 'longitude,latitude' format (e.g., 82.52,28.29).", ) + parser.add_argument( + "--mode", + default="waylines", + type=str, + help="Flight mode (waypoints or waylines).", + ) args = parser.parse_args() with open(args.project_geojson_polygon, "r") as f: @@ -496,6 +502,7 @@ def main(): args.generate_3d, no_fly_zones, args.take_off_point, + args.mode, ) with open(args.output_file_path, "w") as f: