mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 02:52:04 +08:00
reduce startup alert duration to 10s (#22163)
* reduce startup alert duration to 10s * update refs * update refs * update refs old-commit-hash: 1c750975fc179185b270f2063831431538d075d8
This commit is contained in:
@@ -224,7 +224,7 @@ def startup_fuzzy_fingerprint_alert(CP: car.CarParams, sm: messaging.SubMaster,
|
||||
"WARNING: No Exact Match on Car Model",
|
||||
f"Closest Match: {CP.carFingerprint.title()[:40]}",
|
||||
AlertStatus.userPrompt, AlertSize.mid,
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.)
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 10.)
|
||||
|
||||
|
||||
def joystick_alert(CP: car.CarParams, sm: messaging.SubMaster, metric: bool) -> Alert:
|
||||
@@ -262,7 +262,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo
|
||||
"Be ready to take over at any time",
|
||||
"Always keep hands on wheel and eyes on road",
|
||||
AlertStatus.normal, AlertSize.mid,
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.),
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 10.),
|
||||
},
|
||||
|
||||
EventName.startupMaster: {
|
||||
@@ -270,7 +270,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo
|
||||
"WARNING: This branch is not tested",
|
||||
"Always keep hands on wheel and eyes on road",
|
||||
AlertStatus.userPrompt, AlertSize.mid,
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.),
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 10.),
|
||||
},
|
||||
|
||||
# Car is recognized, but marked as dashcam only
|
||||
@@ -279,7 +279,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo
|
||||
"Dashcam mode",
|
||||
"Always keep hands on wheel and eyes on road",
|
||||
AlertStatus.normal, AlertSize.mid,
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.),
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 10.),
|
||||
},
|
||||
|
||||
# Car is not recognized
|
||||
@@ -288,7 +288,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo
|
||||
"Dashcam mode for unsupported car",
|
||||
"Always keep hands on wheel and eyes on road",
|
||||
AlertStatus.normal, AlertSize.mid,
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.),
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 10.),
|
||||
},
|
||||
|
||||
# openpilot uses the version strings from various ECUs to detect the correct car model.
|
||||
@@ -308,7 +308,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo
|
||||
"Car Unrecognized",
|
||||
"Check All Connections",
|
||||
AlertStatus.userPrompt, AlertSize.mid,
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.),
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 10.),
|
||||
},
|
||||
|
||||
EventName.dashcamMode: {
|
||||
|
||||
@@ -1 +1 @@
|
||||
f8e923d707fc37bdc06760c4d4a40425ad270d51
|
||||
f283a33700e03e358b84db0c8fbf3b4d6740ee64
|
||||
Reference in New Issue
Block a user