From 154a42dcbd8b1b15c8ace508e40283a704a2f682 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 8 May 2023 15:09:00 -0700 Subject: [PATCH] gate no gps alert on valid localizer inputs (#28135) --- selfdrive/controls/controlsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index b1fd9378c2..13404d1e2c 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -408,7 +408,7 @@ class Controls: # TODO: fix simulator if not SIMULATION: if not NOSENSOR: - if not self.sm['liveLocationKalman'].gpsOK and (self.distance_traveled > 1000): + if not self.sm['liveLocationKalman'].gpsOK and self.sm['liveLocationKalman'].inputsOK and (self.distance_traveled > 1000): # Not show in first 1 km to allow for driving out of garage. This event shows after 5 minutes self.events.add(EventName.noGps)