mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 23:33:58 +08:00
show persistent dashcam mode alert (#20483)
* always show dashcam mode alert
* show persistent dashcam mode alert
* lowest
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 367aec54d1
This commit is contained in:
2
cereal
2
cereal
Submodule cereal updated: 38ecbfe03b...e1741865f8
@@ -144,6 +144,8 @@ class Controls:
|
||||
self.events.add(EventName.communityFeatureDisallowed, static=True)
|
||||
if not car_recognized:
|
||||
self.events.add(EventName.carUnrecognized, static=True)
|
||||
elif self.read_only:
|
||||
self.events.add(EventName.dashcamMode, static=True)
|
||||
|
||||
# controlsd is driven by can recv, expected at 100Hz
|
||||
self.rk = Ratekeeper(100, print_delay_threshold=None)
|
||||
|
||||
@@ -253,12 +253,12 @@ EVENTS: Dict[int, Dict[str, Union[Alert, Callable[[Any, messaging.SubMaster, boo
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.),
|
||||
},
|
||||
|
||||
EventName.startupOneplus: {
|
||||
EventName.dashcamMode: {
|
||||
ET.PERMANENT: Alert(
|
||||
"WARNING: Original EON deprecated",
|
||||
"Device will no longer update",
|
||||
AlertStatus.userPrompt, AlertSize.mid,
|
||||
Priority.LOWER, VisualAlert.none, AudibleAlert.none, 0., 0., 15.),
|
||||
"Dashcam Mode",
|
||||
"",
|
||||
AlertStatus.normal, AlertSize.small,
|
||||
Priority.LOWEST, VisualAlert.none, AudibleAlert.none, 0., 0., .2),
|
||||
},
|
||||
|
||||
EventName.invalidLkasSetting: {
|
||||
|
||||
Reference in New Issue
Block a user