No fcw when standstill (#26252)

This commit is contained in:
HaraldSchafer
2022-10-26 14:53:01 -07:00
committed by GitHub
parent 9c92814585
commit b80f2efdf2

View File

@@ -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")