|
|
|
@ -107,7 +107,7 @@ class CarController(): |
|
|
|
|
|
|
|
|
|
self.params = CarControllerParams(CP) |
|
|
|
|
|
|
|
|
|
def update(self, enabled, CS, frame, actuators, pcm_cancel_cmd, |
|
|
|
|
def update(self, enabled, active, CS, frame, actuators, pcm_cancel_cmd, |
|
|
|
|
hud_v_cruise, hud_show_lanes, hud_show_car, hud_alert): |
|
|
|
|
|
|
|
|
|
P = self.params |
|
|
|
@ -213,7 +213,7 @@ class CarController(): |
|
|
|
|
if CS.CP.carFingerprint in HONDA_BOSCH: |
|
|
|
|
accel = clip(accel, P.BOSCH_ACCEL_MIN, P.BOSCH_ACCEL_MAX) |
|
|
|
|
bosch_gas = interp(accel, P.BOSCH_GAS_LOOKUP_BP, P.BOSCH_GAS_LOOKUP_V) |
|
|
|
|
can_sends.extend(hondacan.create_acc_commands(self.packer, enabled, accel, bosch_gas, idx, stopping, starting, CS.CP.carFingerprint)) |
|
|
|
|
can_sends.extend(hondacan.create_acc_commands(self.packer, enabled, active, accel, bosch_gas, idx, stopping, starting, CS.CP.carFingerprint)) |
|
|
|
|
|
|
|
|
|
else: |
|
|
|
|
apply_brake = clip(self.brake_last - wind_brake, 0.0, 1.0) |
|
|
|
|