Visuals - Custom Alerts - Loud Blindspot Alert
Enable a louder alert for when a vehicle is detected in the blindspot when attempting to change lanes.
This commit is contained in:
parent
754c396a3b
commit
fb8540f6c2
@ -300,6 +300,9 @@ class Controls:
|
|||||||
direction = self.sm['modelV2'].meta.laneChangeDirection
|
direction = self.sm['modelV2'].meta.laneChangeDirection
|
||||||
if (CS.leftBlindspot and direction == LaneChangeDirection.left) or \
|
if (CS.leftBlindspot and direction == LaneChangeDirection.left) or \
|
||||||
(CS.rightBlindspot and direction == LaneChangeDirection.right):
|
(CS.rightBlindspot and direction == LaneChangeDirection.right):
|
||||||
|
if self.frogpilot_toggles.loud_blindspot_alert:
|
||||||
|
self.events.add(EventName.laneChangeBlockedLoud)
|
||||||
|
else:
|
||||||
self.events.add(EventName.laneChangeBlocked)
|
self.events.add(EventName.laneChangeBlocked)
|
||||||
else:
|
else:
|
||||||
if direction == LaneChangeDirection.left:
|
if direction == LaneChangeDirection.left:
|
||||||
|
@ -998,6 +998,14 @@ EVENTS: dict[int, dict[str, Alert | AlertCallbackType]] = {
|
|||||||
Priority.MID, VisualAlert.none, AudibleAlert.prompt, 3.),
|
Priority.MID, VisualAlert.none, AudibleAlert.prompt, 3.),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
EventName.laneChangeBlockedLoud: {
|
||||||
|
ET.WARNING: Alert(
|
||||||
|
"Car Detected in Blindspot",
|
||||||
|
"",
|
||||||
|
AlertStatus.userPrompt, AlertSize.small,
|
||||||
|
Priority.LOW, VisualAlert.none, AudibleAlert.warningSoft, .1),
|
||||||
|
},
|
||||||
|
|
||||||
EventName.leadDeparting: {
|
EventName.leadDeparting: {
|
||||||
ET.PERMANENT: Alert(
|
ET.PERMANENT: Alert(
|
||||||
"Lead departed",
|
"Lead departed",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user