We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdcb515 commit b1b077cCopy full SHA for b1b077c
examples/joystick.py
@@ -82,7 +82,7 @@ def main(joystick):
82
CC = CarControl(enabled=False)
83
while True:
84
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))
+ CC.actuators.torque = float(np.clip(joystick.axes_values['steer'], -1, 1))
86
pprint(CC)
87
88
p.read()
@@ -110,4 +110,4 @@ def main(joystick):
110
joystick = Keyboard()
111
else:
112
joystick = Joystick(gamepad=(args.mode == 'gamepad'))
113
- main(joystick)
+ main(joystick)
0 commit comments