Add permanent CAN error alert (#1549)
* Add permanent CAN error alert * canValid needs some time to initialize * update refpull/1551/head
parent
ab5af232b2
commit
fcf879d783
|
@ -210,8 +210,8 @@ class Controls:
|
|||
self.events.add(EventName.radarFault)
|
||||
if self.sm['plan'].radarCanError:
|
||||
self.events.add(EventName.radarCanError)
|
||||
if not CS.canValid:
|
||||
self.events.add(EventName.canError)
|
||||
if not CS.canValid and self.sm.frame > 5 / DT_CTRL:
|
||||
self.events.add(EventName.canError)
|
||||
if log.HealthData.FaultType.relayMalfunction in self.sm['health'].faults:
|
||||
self.events.add(EventName.relayMalfunction)
|
||||
if self.sm['plan'].fcw:
|
||||
|
|
|
@ -607,6 +607,11 @@ EVENTS = {
|
|||
EventName.canError: {
|
||||
ET.IMMEDIATE_DISABLE: ImmediateDisableAlert("CAN Error: Check Connections"),
|
||||
ET.NO_ENTRY: NoEntryAlert("CAN Error: Check Connections"),
|
||||
ET.PERMANENT: Alert(
|
||||
"CAN Error: Check Connections",
|
||||
"",
|
||||
AlertStatus.normal, AlertSize.small,
|
||||
Priority.LOW, VisualAlert.none, AudibleAlert.none, 0., 0., .2),
|
||||
},
|
||||
|
||||
EventName.steerUnavailable: {
|
||||
|
|
|
@ -1 +1 @@
|
|||
59bd32350139796784708f51c233d37c18f33e6e
|
||||
dadb4f96017c4f6b36fd829c41315b0a7f31c8e5
|
Loading…
Reference in New Issue