From af02811d42e66f03613b5a49d6fb837eca19ce6c Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 10 Mar 2021 11:13:46 +0100 Subject: [PATCH] turn off gpsMalfunction alert until uBlox config is fixed --- selfdrive/controls/controlsd.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index f7377f8f4b..65c80aaae7 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -235,9 +235,7 @@ class Controls: # TODO: fix simulator if not SIMULATION: if not NOSENSOR: - if not self.sm.alive['ubloxRaw'] and (self.sm.frame > 10. / DT_CTRL): - self.events.add(EventName.gpsMalfunction) - elif not self.sm['liveLocationKalman'].gpsOK and (self.distance_traveled > 1000) and not TICI: + if not self.sm['liveLocationKalman'].gpsOK and (self.distance_traveled > 1000) and not TICI: # Not show in first 1 km to allow for driving out of garage. This event shows after 5 minutes self.events.add(EventName.noGps) if not self.sm.all_alive(['roadCameraState', 'driverCameraState']) and (self.sm.frame > 5 / DT_CTRL):