|
|
@ -30,6 +30,7 @@ class Priority(IntEnum): |
|
|
|
class ET: |
|
|
|
class ET: |
|
|
|
ENABLE = 'enable' |
|
|
|
ENABLE = 'enable' |
|
|
|
PRE_ENABLE = 'preEnable' |
|
|
|
PRE_ENABLE = 'preEnable' |
|
|
|
|
|
|
|
OVERRIDE = 'override' |
|
|
|
NO_ENTRY = 'noEntry' |
|
|
|
NO_ENTRY = 'noEntry' |
|
|
|
WARNING = 'warning' |
|
|
|
WARNING = 'warning' |
|
|
|
USER_DISABLE = 'userDisable' |
|
|
|
USER_DISABLE = 'userDisable' |
|
|
@ -549,6 +550,14 @@ EVENTS: Dict[int, Dict[str, Union[Alert, AlertCallbackType]]] = { |
|
|
|
Priority.LOWEST, VisualAlert.none, AudibleAlert.none, .1, creation_delay=1.), |
|
|
|
Priority.LOWEST, VisualAlert.none, AudibleAlert.none, .1, creation_delay=1.), |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EventName.gasPressedOverride: { |
|
|
|
|
|
|
|
ET.OVERRIDE: Alert( |
|
|
|
|
|
|
|
"", |
|
|
|
|
|
|
|
"", |
|
|
|
|
|
|
|
AlertStatus.normal, AlertSize.none, |
|
|
|
|
|
|
|
Priority.LOWEST, VisualAlert.none, AudibleAlert.none, .1), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
EventName.wrongCarMode: { |
|
|
|
EventName.wrongCarMode: { |
|
|
|
ET.USER_DISABLE: EngagementAlert(AudibleAlert.disengage), |
|
|
|
ET.USER_DISABLE: EngagementAlert(AudibleAlert.disengage), |
|
|
|
ET.NO_ENTRY: wrong_car_mode_alert, |
|
|
|
ET.NO_ENTRY: wrong_car_mode_alert, |
|
|
|