|
|
|
@ -356,14 +356,6 @@ EVENTS: Dict[int, Dict[str, Union[Alert, AlertCallbackType]]] = { |
|
|
|
|
|
|
|
|
|
# ********** events only containing alerts that display while engaged ********** |
|
|
|
|
|
|
|
|
|
EventName.gasPressed: { |
|
|
|
|
ET.PRE_ENABLE: Alert( |
|
|
|
|
"Release Gas Pedal to Engage", |
|
|
|
|
"", |
|
|
|
|
AlertStatus.normal, AlertSize.small, |
|
|
|
|
Priority.LOWEST, VisualAlert.none, AudibleAlert.none, .1, creation_delay=1.), |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
# openpilot tries to learn certain parameters about your car by observing |
|
|
|
|
# how the car behaves to steering inputs from both human and openpilot driving. |
|
|
|
|
# This includes: |
|
|
|
@ -549,6 +541,14 @@ EVENTS: Dict[int, Dict[str, Union[Alert, AlertCallbackType]]] = { |
|
|
|
|
visual_alert=VisualAlert.brakePressed), |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
EventName.pedalPressedPreEnable: { |
|
|
|
|
ET.PRE_ENABLE: Alert( |
|
|
|
|
"Release Pedal to Engage", |
|
|
|
|
"", |
|
|
|
|
AlertStatus.normal, AlertSize.small, |
|
|
|
|
Priority.LOWEST, VisualAlert.none, AudibleAlert.none, .1, creation_delay=1.), |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
EventName.wrongCarMode: { |
|
|
|
|
ET.USER_DISABLE: EngagementAlert(AudibleAlert.disengage), |
|
|
|
|
ET.NO_ENTRY: wrong_car_mode_alert, |
|
|
|
|