Allow Honda Nidec vehicles with comma pedal to drive at max speed. (#26902)

Without this Honda Nidec vehicles with the comma pedal will drive around 2 mph under the max speed.
pull/27350/head
Rob Chouinard 2 years ago committed by GitHub
parent 8c099dd4e5
commit d4c5b8d6f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/car/honda/interface.py

@ -21,6 +21,8 @@ class CarInterface(CarInterfaceBase):
def get_pid_accel_limits(CP, current_speed, cruise_speed): def get_pid_accel_limits(CP, current_speed, cruise_speed):
if CP.carFingerprint in HONDA_BOSCH: if CP.carFingerprint in HONDA_BOSCH:
return CarControllerParams.BOSCH_ACCEL_MIN, CarControllerParams.BOSCH_ACCEL_MAX return CarControllerParams.BOSCH_ACCEL_MIN, CarControllerParams.BOSCH_ACCEL_MAX
elif CP.enableGasInterceptor:
return CarControllerParams.NIDEC_ACCEL_MIN, CarControllerParams.NIDEC_ACCEL_MAX
else: else:
# NIDECs don't allow acceleration near cruise_speed, # NIDECs don't allow acceleration near cruise_speed,
# so limit limits of pid to prevent windup # so limit limits of pid to prevent windup

Loading…
Cancel
Save