no gps warning after 5 minutes (#1692)

pull/1693/head
Willem Melching 5 years ago committed by GitHub
parent 1ea80bedad
commit 684f7b2cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cereal
  2. 2
      selfdrive/controls/controlsd.py
  3. 8
      selfdrive/controls/lib/events.py

@ -1 +1 @@
Subproject commit b93b165a5c9de33325d7b01aa033073c978d1007
Subproject commit d4d52a567bfd17a5130429657b341618ed657627

@ -202,6 +202,8 @@ class Controls:
if not self.sm['liveLocationKalman'].inputsOK and os.getenv("NOSENSOR") is None:
if self.sm.frame > 5 / DT_CTRL: # Give locationd some time to receive all the inputs
self.events.add(EventName.sensorDataInvalid)
if not self.sm['liveLocationKalman'].gpsOK and os.getenv("NOSENSOR") is None:
self.events.add(EventName.noGps)
if not self.sm['pathPlan'].paramsValid:
self.events.add(EventName.vehicleModelInvalid)
if not self.sm['liveLocationKalman'].posenetOK:

@ -517,6 +517,14 @@ EVENTS = {
ET.NO_ENTRY: NoEntryAlert("No Data from Device Sensors"),
},
EventName.noGps: {
ET.PERMANENT: Alert(
"Poor GPS reception",
"Check GPS antenna placement",
AlertStatus.normal, AlertSize.mid,
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., .2, creation_delay=300.),
},
EventName.soundsUnavailable: {
ET.PERMANENT: Alert(
"Speaker not found",

Loading…
Cancel
Save