mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-03-03 02:03:54 +08:00
remove model lag warning, leave red alert at 20
old-commit-hash: 160fd207a5
This commit is contained in:
2
cereal
2
cereal
Submodule cereal updated: f1a9b228c6...bafe019e36
@@ -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"),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user