mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-02 07:53:51 +08:00
No fcw when standstill (#26252)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user