Skip to content

Commit 2b295e7

Browse files
committed
Increase takeoff altitude and sleep
1 parent 50a811e commit 2b295e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/telemetry_takeoff_and_land.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,18 @@ async def run():
4646
print("-- Global position state is good enough for flying.")
4747
break
4848

49+
# Take the drone little bit higher during takeoff
50+
print("-- Setting takeoff altitude")
51+
await drone.param.set_param_float('MIS_TAKEOFF_ALT', 10.0)
52+
4953
# Execute the maneuvers
5054
print("-- Arming")
5155
await drone.action.arm()
5256

5357
print("-- Taking off")
5458
await drone.action.takeoff()
5559

56-
await asyncio.sleep(5)
60+
await asyncio.sleep(10)
5761

5862
print("-- Landing")
5963
await drone.action.land()

0 commit comments

Comments
 (0)