Skip to main content

hover()

Description#

This function makes the drone hover for a given amount of time. If given no parameters, it will hover indefinitely until given a another command.

Syntax#

hover(duration)

Parameters#

duration: Duration of the hovering in seconds

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()