Skip to content

Commit b1b077c

Browse files
committed
Also rename this
1 parent bdcb515 commit b1b077c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/joystick.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def main(joystick):
8282
CC = CarControl(enabled=False)
8383
while True:
8484
CC.actuators.accel = float(4.0*np.clip(joystick.axes_values['gb'], -1, 1))
85-
CC.actuators.steer = float(np.clip(joystick.axes_values['steer'], -1, 1))
85+
CC.actuators.torque = float(np.clip(joystick.axes_values['steer'], -1, 1))
8686
pprint(CC)
8787

8888
p.read()
@@ -110,4 +110,4 @@ def main(joystick):
110110
joystick = Keyboard()
111111
else:
112112
joystick = Joystick(gamepad=(args.mode == 'gamepad'))
113-
main(joystick)
113+
main(joystick)

0 commit comments

Comments
 (0)