Fix throttle scaling in simulator to match gas 1.0 to NIDEC_ACCEL_MAX in Honda CarControllerParams (#22310)

pull/22316/head
Alfonso Hernandez 4 years ago committed by GitHub
parent 1e494a5224
commit 703d0cb832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/sim/bridge.py

@ -297,7 +297,7 @@ def bridge(q):
if is_openpilot_engaged:
sm.update(0)
# TODO gas and brake is deprecated
throttle_op = clip(sm['carControl'].actuators.accel/4.0, 0.0, 1.0)
throttle_op = clip(sm['carControl'].actuators.accel/1.6, 0.0, 1.0)
brake_op = clip(-sm['carControl'].actuators.accel/4.0, 0.0, 1.0)
steer_op = sm['carControl'].actuators.steeringAngleDeg

Loading…
Cancel
Save