Skip to main content

get_y_accel()

Description#

Getter function that gets the y acceleration of the drone. (y is left and right)
y position image

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