MADS: mute canBusMissing if vehicle is in Park and enabled (#613)

* Car: mute `canBusMissing` if vehicle is in Park

* only when mads is enabled
This commit is contained in:
Jason Wen
2025-02-01 22:26:19 -05:00
committed by GitHub
parent d7087d312c
commit bb407ae9bf
+4
View File
@@ -380,6 +380,10 @@ class SelfdriveD(CruiseHelper):
if self.sm['modelV2'].frameDropPerc > 20:
self.events.add(EventName.modeldLagging)
# mute canBusMissing event if in Park, as it sometimes may trigger a false alarm with MADS in Paused state
if CS.gearShifter == car.CarState.GearShifter.park and self.mads.enabled:
self.events.remove(EventName.canBusMissing)
CruiseHelper.update(self, CS, self.events_sp, self.experimental_mode)
# decrement personality on distance button press