Skip to content

Commit 84720ec

Browse files
committed
Allow Honda Nidec vehicles with comma pedal to drive at max speed.
Without this Honda Nidec vehicles with the comma pedal will drive around 2 mph under the max speed.
1 parent 2b61186 commit 84720ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

selfdrive/car/honda/interface.py

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class CarInterface(CarInterfaceBase):
2121
def get_pid_accel_limits(CP, current_speed, cruise_speed):
2222
if CP.carFingerprint in HONDA_BOSCH:
2323
return CarControllerParams.BOSCH_ACCEL_MIN, CarControllerParams.BOSCH_ACCEL_MAX
24+
elif CP.enableGasInterceptor:
25+
return CarControllerParams.NIDEC_ACCEL_MIN, CarControllerParams.NIDEC_ACCEL_MAX
2426
else:
2527
# NIDECs don't allow acceleration near cruise_speed,
2628
# so limit limits of pid to prevent windup

0 commit comments

Comments
 (0)