remove model lag warning, leave red alert at 20

pull/2622/head
George Hotz 4 years ago
parent 97f9277ba6
commit 160fd207a5
  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:
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
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.),
},
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: {
ET.PERMANENT: NormalPermanentAlert("Fan Malfunction", "Contact Support"),
},

Loading…
Cancel
Save