remove model lag warning, leave red alert at 20

old-commit-hash: 160fd207a5
This commit is contained in:
George Hotz
2020-11-24 13:02:56 -08:00
parent fcccf3aaf2
commit 8a35cce75f
3 changed files with 1 additions and 11 deletions

2
cereal

Submodule cereal updated: f1a9b228c6...bafe019e36

View File

@@ -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 \

View File

@@ -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"),
},