No fcw when standstill (#26252)

old-commit-hash: b80f2efdf2
taco
HaraldSchafer 3 years ago committed by GitHub
parent 9c791ad9b2
commit 48f4c8b701
  1. 2
      selfdrive/controls/lib/longitudinal_planner.py

@ -133,7 +133,7 @@ class LongitudinalPlanner:
# TODO counter is only needed because radar is glitchy, remove once radar is gone
# TODO write fcw in e2e_long mode
self.fcw = self.mpc.mode == 'acc' and self.mpc.crash_cnt > 5
self.fcw = self.mpc.mode == 'acc' and self.mpc.crash_cnt > 5 and not sm['carState'].standstill
if self.fcw:
cloudlog.info("FCW triggered")

Loading…
Cancel
Save