|
|
@ -298,7 +298,7 @@ class Controls: |
|
|
|
self.events.add(EventName.cruiseMismatch) |
|
|
|
self.events.add(EventName.cruiseMismatch) |
|
|
|
|
|
|
|
|
|
|
|
# Check for FCW |
|
|
|
# Check for FCW |
|
|
|
stock_long_is_braking = self.enabled and not self.CP.openpilotLongitudinalControl and CS.aEgo < -1.5 |
|
|
|
stock_long_is_braking = self.enabled and not self.CP.openpilotLongitudinalControl and CS.aEgo < -1.25 |
|
|
|
model_fcw = self.sm['modelV2'].meta.hardBrakePredicted and not CS.brakePressed and not stock_long_is_braking |
|
|
|
model_fcw = self.sm['modelV2'].meta.hardBrakePredicted and not CS.brakePressed and not stock_long_is_braking |
|
|
|
planner_fcw = self.sm['longitudinalPlan'].fcw and self.enabled |
|
|
|
planner_fcw = self.sm['longitudinalPlan'].fcw and self.enabled |
|
|
|
if planner_fcw or model_fcw: |
|
|
|
if planner_fcw or model_fcw: |
|
|
|