Remove acura (#21946)

* treat acura like nidec

* treat acura like nidec
old-commit-hash: 1c6c56a9df
commatwo_master
HaraldSchafer 4 years ago committed by GitHub
parent b8ea2db6ae
commit 6bed02373e
  1. 3
      selfdrive/car/honda/carcontroller.py
  2. 4
      selfdrive/car/honda/interface.py

@ -166,9 +166,6 @@ class CarController():
if CS.CP.carFingerprint in OLD_NIDEC_LONG_CONTROL:
#pcm_speed = pcm_speed
pcm_accel = int(clip(pcm_accel, 0, 1) * 0xc6)
elif CS.CP.carFingerprint == CAR.ACURA_ILX:
pcm_speed = CS.out.vEgo + apply_accel
pcm_accel = int(1.0 * 0xc6)
else:
max_accel = interp(CS.out.vEgo, P.NIDEC_MAX_ACCEL_BP, P.NIDEC_MAX_ACCEL_V)
pcm_accel = int(clip(apply_accel/max_accel, 0.0, 1.0) * 0xc6)

@ -38,9 +38,7 @@ class CarInterface(CarInterfaceBase):
def __init__(self, CP, CarController, CarState):
super().__init__(CP, CarController, CarState)
if self.CS.CP.carFingerprint == CAR.ACURA_ILX:
self.compute_gb = compute_gb_acura
elif self.CS.CP.carFingerprint in HONDA_BOSCH:
if self.CS.CP.carFingerprint in HONDA_BOSCH:
self.compute_gb = compute_gb_honda_bosch
else:
self.compute_gb = compute_gb_honda_nidec

Loading…
Cancel
Save