|
|
@ -156,7 +156,7 @@ class SoftDisableAlert(Alert): |
|
|
|
super().__init__("TAKE CONTROL IMMEDIATELY", alert_text_2, |
|
|
|
super().__init__("TAKE CONTROL IMMEDIATELY", alert_text_2, |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
Priority.MID, VisualAlert.steerRequired, |
|
|
|
Priority.MID, VisualAlert.steerRequired, |
|
|
|
AudibleAlert.chimeWarningRepeat, .1, 2., 2.), |
|
|
|
AudibleAlert.chimeWarningRepeatInfinite, .1, 2., 2.), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ImmediateDisableAlert(Alert): |
|
|
|
class ImmediateDisableAlert(Alert): |
|
|
@ -164,7 +164,7 @@ class ImmediateDisableAlert(Alert): |
|
|
|
super().__init__(alert_text_1, alert_text_2, |
|
|
|
super().__init__(alert_text_1, alert_text_2, |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
Priority.HIGHEST, VisualAlert.steerRequired, |
|
|
|
Priority.HIGHEST, VisualAlert.steerRequired, |
|
|
|
AudibleAlert.chimeWarningRepeat, 2.2, 3., 4.), |
|
|
|
AudibleAlert.chimeWarningRepeatInfinite, 2.2, 3., 4.), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EngagementAlert(Alert): |
|
|
|
class EngagementAlert(Alert): |
|
|
@ -350,7 +350,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo |
|
|
|
"BRAKE!", |
|
|
|
"BRAKE!", |
|
|
|
"Risk of Collision", |
|
|
|
"Risk of Collision", |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
Priority.HIGHEST, VisualAlert.fcw, AudibleAlert.chimeWarningRepeat, 1., 2., 2.), |
|
|
|
Priority.HIGHEST, VisualAlert.fcw, AudibleAlert.chimeWarningRepeatInfinite, 1., 2., 2.), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
EventName.ldw: { |
|
|
|
EventName.ldw: { |
|
|
@ -410,7 +410,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo |
|
|
|
"KEEP EYES ON ROAD", |
|
|
|
"KEEP EYES ON ROAD", |
|
|
|
"Driver Distracted", |
|
|
|
"Driver Distracted", |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
Priority.MID, VisualAlert.steerRequired, AudibleAlert.chimeWarning2Repeat, .1, .1, .1), |
|
|
|
Priority.MID, VisualAlert.steerRequired, AudibleAlert.chimeWarning2RepeatInfinite, .1, .1, .1), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
EventName.driverDistracted: { |
|
|
|
EventName.driverDistracted: { |
|
|
@ -418,7 +418,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo |
|
|
|
"DISENGAGE IMMEDIATELY", |
|
|
|
"DISENGAGE IMMEDIATELY", |
|
|
|
"Driver Distracted", |
|
|
|
"Driver Distracted", |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
Priority.HIGH, VisualAlert.steerRequired, AudibleAlert.chimeWarningRepeat, .1, .1, .1), |
|
|
|
Priority.HIGH, VisualAlert.steerRequired, AudibleAlert.chimeWarningRepeatInfinite, .1, .1, .1), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
EventName.preDriverUnresponsive: { |
|
|
|
EventName.preDriverUnresponsive: { |
|
|
@ -434,7 +434,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo |
|
|
|
"TOUCH STEERING WHEEL", |
|
|
|
"TOUCH STEERING WHEEL", |
|
|
|
"Driver Unresponsive", |
|
|
|
"Driver Unresponsive", |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
Priority.MID, VisualAlert.steerRequired, AudibleAlert.chimeWarning2Repeat, .1, .1, .1), |
|
|
|
Priority.MID, VisualAlert.steerRequired, AudibleAlert.chimeWarning2RepeatInfinite, .1, .1, .1), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
EventName.driverUnresponsive: { |
|
|
|
EventName.driverUnresponsive: { |
|
|
@ -442,7 +442,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo |
|
|
|
"DISENGAGE IMMEDIATELY", |
|
|
|
"DISENGAGE IMMEDIATELY", |
|
|
|
"Driver Unresponsive", |
|
|
|
"Driver Unresponsive", |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
AlertStatus.critical, AlertSize.full, |
|
|
|
Priority.HIGH, VisualAlert.steerRequired, AudibleAlert.chimeWarningRepeat, .1, .1, .1), |
|
|
|
Priority.HIGH, VisualAlert.steerRequired, AudibleAlert.chimeWarningRepeatInfinite, .1, .1, .1), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
EventName.manualRestart: { |
|
|
|
EventName.manualRestart: { |
|
|
@ -849,7 +849,7 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo |
|
|
|
"Speed Too High", |
|
|
|
"Speed Too High", |
|
|
|
"Model uncertain at this speed", |
|
|
|
"Model uncertain at this speed", |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
AlertStatus.userPrompt, AlertSize.mid, |
|
|
|
Priority.HIGH, VisualAlert.steerRequired, AudibleAlert.chimeWarning2Repeat, 2.2, 3., 4.), |
|
|
|
Priority.HIGH, VisualAlert.steerRequired, AudibleAlert.chimeWarning2RepeatInfinite, 2.2, 3., 4.), |
|
|
|
ET.NO_ENTRY: Alert( |
|
|
|
ET.NO_ENTRY: Alert( |
|
|
|
"Speed Too High", |
|
|
|
"Speed Too High", |
|
|
|
"Slow down to engage", |
|
|
|
"Slow down to engage", |
|
|
|