Skip to content

Commit

Permalink
Set takeoff altitude with an action
Browse files Browse the repository at this point in the history
  • Loading branch information
danylevskyi committed Mar 28, 2022
1 parent 2b295e7 commit 6e251b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/telemetry_takeoff_and_land.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,12 @@ async def run():
print("-- Global position state is good enough for flying.")
break

# Take the drone little bit higher during takeoff
print("-- Setting takeoff altitude")
await drone.param.set_param_float('MIS_TAKEOFF_ALT', 10.0)

# Execute the maneuvers
print("-- Arming")
await drone.action.arm()

print("-- Taking off")
await drone.action.set_takeoff_altitude(10.0)
await drone.action.takeoff()

await asyncio.sleep(10)
Expand Down

0 comments on commit 6e251b2

Please sign in to comment.