mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 06:52:07 +08:00
no gps warning after 5 minutes (#1692)
This commit is contained in:
+1
-1
Submodule cereal updated: b93b165a5c...d4d52a567b
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user