|
|
@ -224,7 +224,7 @@ def startup_fuzzy_fingerprint_alert(CP: car.CarParams, sm: messaging.SubMaster, |
|
|
|
"WARNING: No Exact Match on Car Model", |
|
|
|
"WARNING: No Exact Match on Car Model", |
|
|
|
f"Closest Match: {CP.carFingerprint.title()[:40]}", |
|
|
|
f"Closest Match: {CP.carFingerprint.title()[:40]}", |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
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: |
|
|
|
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", |
|
|
|
"Be ready to take over at any time", |
|
|
|
"Always keep hands on wheel and eyes on road", |
|
|
|
"Always keep hands on wheel and eyes on road", |
|
|
|
AlertStatus.normal, AlertSize.mid, |
|
|
|
AlertStatus.normal, AlertSize.mid, |
|
|
|
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.), |
|
|
|
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 10.), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
EventName.startupMaster: { |
|
|
|
EventName.startupMaster: { |
|
|
@ -270,7 +270,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo |
|
|
|
"WARNING: This branch is not tested", |
|
|
|
"WARNING: This branch is not tested", |
|
|
|
"Always keep hands on wheel and eyes on road", |
|
|
|
"Always keep hands on wheel and eyes on road", |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
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 |
|
|
|
# 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", |
|
|
|
"Dashcam mode", |
|
|
|
"Always keep hands on wheel and eyes on road", |
|
|
|
"Always keep hands on wheel and eyes on road", |
|
|
|
AlertStatus.normal, AlertSize.mid, |
|
|
|
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 |
|
|
|
# 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", |
|
|
|
"Dashcam mode for unsupported car", |
|
|
|
"Always keep hands on wheel and eyes on road", |
|
|
|
"Always keep hands on wheel and eyes on road", |
|
|
|
AlertStatus.normal, AlertSize.mid, |
|
|
|
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. |
|
|
|
# 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", |
|
|
|
"Car Unrecognized", |
|
|
|
"Check All Connections", |
|
|
|
"Check All Connections", |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.), |
|
|
|
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 10.), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
EventName.dashcamMode: { |
|
|
|
EventName.dashcamMode: { |
|
|
|