Skip to main content

get_z_accel()

Description#

Getter function that gets the z acceleration of the drone. (z is up and down)
z position image

Syntax#

get_z_accel()

Parameters#

None

Returns#

The current z acceleration of the drone.

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