Lead departing alert

Added toggle to enable an alert when the lead vehicle starts to depart.
This commit is contained in:
FrogAi
2024-02-27 16:34:47 -07:00
parent a87574510c
commit f4726bf095
6 changed files with 29 additions and 1 deletions

8
selfdrive/controls/lib/events.py Executable file → Normal file
View File

@@ -1002,6 +1002,14 @@ EVENTS: Dict[int, Dict[str, Union[Alert, AlertCallbackType]]] = {
EventName.holidayActive: {
ET.PERMANENT: holiday_alert,
},
EventName.leadDeparting: {
ET.PERMANENT: Alert(
"Lead departed",
"",
AlertStatus.frogpilot, AlertSize.small,
Priority.MID, VisualAlert.none, AudibleAlert.prompt, 3.),
},
}