From 297bd1c6470706d87ea191f6cf435921777a4b6f Mon Sep 17 00:00:00 2001 From: Lucca Pirovano Date: Thu, 11 Jun 2026 14:12:52 -0400 Subject: [PATCH] lowered the height and speed for testing --- flyupflydown.py | 4 ++-- requirements.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 requirements.txt diff --git a/flyupflydown.py b/flyupflydown.py index be9d769..b5a1355 100644 --- a/flyupflydown.py +++ b/flyupflydown.py @@ -9,13 +9,13 @@ drone.takeoff() drone.hover(2) # wait a couple seconds to stabilize # Fly UP 1 foot (0.3m) at a moderate speed -drone.move_distance(0, 0, 0.3, 0.5) # x=0, y=0, z=+0.3m (up), speed=0.5 m/s +drone.move_distance(0, 0, 0.1, 0.2) # x=0, y=0, z=+0.3m (up), speed=0.5 m/s # Hover briefly drone.hover(1) # Fly DOWN 1 foot (0.3m) slowly -drone.move_distance(0, 0, -0.3, 0.3) # z=-0.3m (down), slower speed = 0.3 m/s +drone.move_distance(0, 0, -0.1, 0.2) # z=-0.3m (down), slower speed = 0.3 m/s # Land safely drone.land() diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..243dbcc --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +codrone_edu