Skip to main content

get_left_joystick_x()

Description#

get_left_joystick_x is a getter function that gets the position of the left joystick's x position

Syntax#

get_left_joystick_x()

Parameters#

None

Returns#

A value between -100 and 100 depending on the x 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_x())