From 85918e88871e8fac9c6265977887ca112bbcdc54 Mon Sep 17 00:00:00 2001 From: infiniteCable2 Date: Sat, 13 Dec 2025 09:57:51 +0100 Subject: [PATCH] Update card.py add new method for failure detection in CI to put the comma into dashcam mode --- selfdrive/car/card.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selfdrive/car/card.py b/selfdrive/car/card.py index 0c484c2d9..d28c2914b 100644 --- a/selfdrive/car/card.py +++ b/selfdrive/car/card.py @@ -123,6 +123,10 @@ class Car: self.CI, self.CP, self.CP_SP = CI, CI.CP, CI.CP_SP self.RI = RI + # supply a pre init method to set CP by checking data on the can bus + # e.g. car is in a state where the radar can not be disabled -> set dashcam mode + self.CI.pre_init(self.CP, self.CP_SP, *self.can_callbacks) + self.CP.alternativeExperience = 0 # mads set_alternative_experience(self.CP, self.CP_SP, self.params)