|
|
@ -221,7 +221,7 @@ class CarController: |
|
|
|
|
|
|
|
|
|
|
|
if self.CP.carFingerprint in HONDA_BOSCH: |
|
|
|
if self.CP.carFingerprint in HONDA_BOSCH: |
|
|
|
self.accel = clip(accel, self.params.BOSCH_ACCEL_MIN, self.params.BOSCH_ACCEL_MAX) |
|
|
|
self.accel = clip(accel, self.params.BOSCH_ACCEL_MIN, self.params.BOSCH_ACCEL_MAX) |
|
|
|
self.gas = interp(accel, self.params.BOSCH_GAS_LOOKUP_BP, self.params.BOSCH_GAS_LOOKUP_V) |
|
|
|
self.gas = interp(gas, self.params.BOSCH_GAS_LOOKUP_BP, self.params.BOSCH_GAS_LOOKUP_V) |
|
|
|
can_sends.extend(hondacan.create_acc_commands(self.packer, CC.enabled, CC.longActive, self.accel, self.gas, |
|
|
|
can_sends.extend(hondacan.create_acc_commands(self.packer, CC.enabled, CC.longActive, self.accel, self.gas, |
|
|
|
idx, stopping, self.CP.carFingerprint)) |
|
|
|
idx, stopping, self.CP.carFingerprint)) |
|
|
|
else: |
|
|
|
else: |
|
|
|