Skip to main content

get_left_joystick_y()

Description#

get_left_joystick_y is a getter function that gets the position of the left joystick's y position

Syntax#

get_left_joystick_y()

Parameters#

None

Returns#

A value between -100 and 100 depending on the y position of the left joystick.

Example Code#
Python#
#Python code
from codrone_edu.drone import *
import time
drone = Drone()
drone.open()
while True:
time.sleep(0.1)
print(drone.get_left_joystick_y())