|
|
@ -353,7 +353,7 @@ class CarInterface(CarInterfaceBase): |
|
|
|
ret.longitudinalTuning.kpV = [1.2, 0.8, 0.5] |
|
|
|
ret.longitudinalTuning.kpV = [1.2, 0.8, 0.5] |
|
|
|
ret.longitudinalTuning.kiBP = [0., 35.] |
|
|
|
ret.longitudinalTuning.kiBP = [0., 35.] |
|
|
|
ret.longitudinalTuning.kiV = [0.18, 0.12] |
|
|
|
ret.longitudinalTuning.kiV = [0.18, 0.12] |
|
|
|
|
|
|
|
|
|
|
|
elif candidate == CAR.INSIGHT: |
|
|
|
elif candidate == CAR.INSIGHT: |
|
|
|
stop_and_go = True |
|
|
|
stop_and_go = True |
|
|
|
ret.mass = 2987. * CV.LB_TO_KG + STD_CARGO_KG |
|
|
|
ret.mass = 2987. * CV.LB_TO_KG + STD_CARGO_KG |
|
|
@ -465,11 +465,6 @@ class CarInterface(CarInterfaceBase): |
|
|
|
if self.CP.enableCruise and ret.vEgo < self.CP.minEnableSpeed: |
|
|
|
if self.CP.enableCruise and ret.vEgo < self.CP.minEnableSpeed: |
|
|
|
events.append(create_event('speedTooLow', [ET.NO_ENTRY])) |
|
|
|
events.append(create_event('speedTooLow', [ET.NO_ENTRY])) |
|
|
|
|
|
|
|
|
|
|
|
# disable on pedals rising edge or when brake is pressed and speed isn't zero |
|
|
|
|
|
|
|
if (ret.gasPressed and not self.gas_pressed_prev) or \ |
|
|
|
|
|
|
|
(ret.brakePressed and (not self.brake_pressed_prev or ret.vEgo > 0.001)): |
|
|
|
|
|
|
|
events.append(create_event('pedalPressed', [ET.NO_ENTRY, ET.USER_DISABLE])) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# it can happen that car cruise disables while comma system is enabled: need to |
|
|
|
# it can happen that car cruise disables while comma system is enabled: need to |
|
|
|
# keep braking if needed or if the speed is very low |
|
|
|
# keep braking if needed or if the speed is very low |
|
|
|
if self.CP.enableCruise and not ret.cruiseState.enabled and (c.actuators.brake <= 0. or not self.CP.openpilotLongitudinalControl): |
|
|
|
if self.CP.enableCruise and not ret.cruiseState.enabled and (c.actuators.brake <= 0. or not self.CP.openpilotLongitudinalControl): |
|
|
|