gate no gps alert on valid localizer inputs (#28135)

old-commit-hash: 154a42dcbd
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent 6538e7b915
commit 7e73e412ee
  1. 2
      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)

Loading…
Cancel
Save