lowered the height and speed for testing
This commit is contained in:
+2
-2
@@ -9,13 +9,13 @@ drone.takeoff()
|
|||||||
drone.hover(2) # wait a couple seconds to stabilize
|
drone.hover(2) # wait a couple seconds to stabilize
|
||||||
|
|
||||||
# Fly UP 1 foot (0.3m) at a moderate speed
|
# 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
|
# Hover briefly
|
||||||
drone.hover(1)
|
drone.hover(1)
|
||||||
|
|
||||||
# Fly DOWN 1 foot (0.3m) slowly
|
# 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
|
# Land safely
|
||||||
drone.land()
|
drone.land()
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
codrone_edu
|
||||||
Reference in New Issue
Block a user