We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b61186 commit 84720ecCopy full SHA for 84720ec
selfdrive/car/honda/interface.py
@@ -21,6 +21,8 @@ class CarInterface(CarInterfaceBase):
21
def get_pid_accel_limits(CP, current_speed, cruise_speed):
22
if CP.carFingerprint in HONDA_BOSCH:
23
return CarControllerParams.BOSCH_ACCEL_MIN, CarControllerParams.BOSCH_ACCEL_MAX
24
+ elif CP.enableGasInterceptor:
25
+ return CarControllerParams.NIDEC_ACCEL_MIN, CarControllerParams.NIDEC_ACCEL_MAX
26
else:
27
# NIDECs don't allow acceleration near cruise_speed,
28
# so limit limits of pid to prevent windup
0 commit comments