mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 02:43:47 +08:00
Remove acura (#21946)
* treat acura like nidec * treat acura like nidec old-commit-hash: 1c6c56a9dfa7308d31c24ac20a07baa73ac41059
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user