From 716161abeb32d953f81dfcacb8916fb52034228b Mon Sep 17 00:00:00 2001 From: Youssof Date: Wed, 5 Jun 2024 11:14:53 -0300 Subject: [PATCH] Limit number of simulated drones to be between 1 and 10 --- .gitignore | 1 + skel/Desktop/simulated-drone/sim_drone.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 078841d..0d22318 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ docs/build/ +.vscode \ No newline at end of file diff --git a/skel/Desktop/simulated-drone/sim_drone.py b/skel/Desktop/simulated-drone/sim_drone.py index b3cd37e..7630aa0 100755 --- a/skel/Desktop/simulated-drone/sim_drone.py +++ b/skel/Desktop/simulated-drone/sim_drone.py @@ -134,7 +134,7 @@ def start(sys_id: int = 1): @app.command() -def start_group(count: int): +def start_group(count: int = typer.Argument(min=1, max=10)): """Start a group of robots""" for i in range(count): logger.info(f"start robot {i}")