remove stockFcw from stockAeb

pull/25345/head
Martin Lillepuu 2 years ago
parent d8a3861193
commit d15559e317
  1. 2
      selfdrive/car/subaru/carstate.py

@ -78,7 +78,7 @@ class CarState(CarStateBase):
ret.cruiseState.standstill = cp_cam.vl["ES_DashStatus"]["Cruise_State"] == 3
ret.stockFcw = cp_cam.vl["ES_LKAS_State"]["LKAS_Alert"] == 2
ret.stockAeb = (cp_cam.vl["ES_LKAS_State"]["LKAS_Alert"] == 5) or \
(cp_cam.vl["ES_LKAS_State"]["LKAS_Alert_Msg"] == 6) or ret.stockFcw
(cp_cam.vl["ES_LKAS_State"]["LKAS_Alert_Msg"] == 6)
self.es_lkas_state_msg = copy.copy(cp_cam.vl["ES_LKAS_State"])
cp_es_brake = cp_body if self.car_fingerprint in GLOBAL_GEN2 else cp_cam

Loading…
Cancel
Save