Skip to main content

takeoff()

Description#

This function makes the drone takeoff and hover.
The drone will always hover for 1 second in order to stabilize before it executes the next command.

Syntax#

takeoff()

Parameters#

None

Returns#

None

Example Code#
Python#
#Python code
from codrone_edu.drone import *
drone = Drone()
drone.pair()
drone.takeoff()
drone.hover(3)
drone.land()
drone.close()