Skip to main content

get_y_accel()

Description#

Getter function that gets the y acceleration of the drone.

Syntax#

get_y_accel()

Parameters#

None

Returns#

The current y acceleration of the drone.

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