Skip to content

Commit

Permalink
update: waypoint mode args added
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Dec 23, 2024
1 parent 0585bbb commit b9f9b4f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drone_flightplan/waypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit b9f9b4f

Please sign in to comment.