remove model lag warning, leave red alert at 20

old-commit-hash: 160fd207a5
commatwo_master
George Hotz 4 years ago
parent fcccf3aaf2
commit 8a35cce75f
  1. 2
      cereal
  2. 2
      selfdrive/controls/controlsd.py
  3. 8
      selfdrive/controls/lib/events.py

@ -1 +1 @@
Subproject commit f1a9b228c6086eb444d60defb2d43d64ec1e2a94 Subproject commit bafe019e36f1c854aacc02c77abae4e3a11e680a

@ -237,8 +237,6 @@ class Controls:
if self.sm['model'].frameDropPerc > 20 and not SIMULATION: if self.sm['model'].frameDropPerc > 20 and not SIMULATION:
self.events.add(EventName.modeldLagging) self.events.add(EventName.modeldLagging)
elif self.sm['model'].frameDropPerc > 2 and not SIMULATION:
self.events.add(EventName.modelLagWarning)
# Only allow engagement with brake pressed when stopped behind another stopped car # Only allow engagement with brake pressed when stopped behind another stopped car
if CS.brakePressed and self.sm['plan'].vTargetFuture >= STARTING_TARGET_SPEED \ if CS.brakePressed and self.sm['plan'].vTargetFuture >= STARTING_TARGET_SPEED \

@ -451,14 +451,6 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo
Priority.LOW, VisualAlert.steerRequired, AudibleAlert.chimePrompt, 1., 1., 1.), Priority.LOW, VisualAlert.steerRequired, AudibleAlert.chimePrompt, 1., 1., 1.),
}, },
EventName.modelLagWarning: {
ET.WARNING: Alert(
"TAKE CONTROL",
"Driving Model Lagging",
AlertStatus.userPrompt, AlertSize.mid,
Priority.LOW, VisualAlert.steerRequired, AudibleAlert.chimePrompt, 1., 1., 1.),
},
EventName.fanMalfunction: { EventName.fanMalfunction: {
ET.PERMANENT: NormalPermanentAlert("Fan Malfunction", "Contact Support"), ET.PERMANENT: NormalPermanentAlert("Fan Malfunction", "Contact Support"),
}, },

Loading…
Cancel
Save