Remove acura (#21946)

* treat acura like nidec

* treat acura like nidec
old-commit-hash: 1c6c56a9dfa7308d31c24ac20a07baa73ac41059
This commit is contained in:
HaraldSchafer
2021-08-17 11:44:22 -07:00
committed by GitHub
parent b8ea2db6ae
commit 6bed02373e
2 changed files with 1 additions and 6 deletions
-3
View File
@@ -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)
+1 -3
View File
@@ -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