From 6e2571f850ea7f880220db8a0faba874de48a2d7 Mon Sep 17 00:00:00 2001 From: discountchubbs Date: Wed, 2 Apr 2025 04:47:09 -0700 Subject: [PATCH] Change access from private to public, allow call from card once again, due to the fact that the flags were being set after interface init, leading to no value being returned, leading to no tune being applied. Change interfaces accordingly to remove the now unneeded variable in get_params_sp. Changed private local method _get_longitudinal_tuning, to a publically accessible get_longitudinal_tuning method. Added one line call in card. --- opendbc_repo | 2 +- selfdrive/car/card.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/opendbc_repo b/opendbc_repo index 936abba80f..5d4207c413 160000 --- a/opendbc_repo +++ b/opendbc_repo @@ -1 +1 @@ -Subproject commit 936abba80fe6c9173380d0f6ab59b60f04b45c37 +Subproject commit 5d4207c41302257a2f7cea2f923cd303d135ad38 diff --git a/selfdrive/car/card.py b/selfdrive/car/card.py index 1cfab5f753..c4a8e79300 100755 --- a/selfdrive/car/card.py +++ b/selfdrive/car/card.py @@ -112,6 +112,7 @@ class Car: self.RI = interfaces[self.CI.CP.carFingerprint].RadarInterface(self.CI.CP, self.CI.CP_SP) self.CP = self.CI.CP self.CP_SP = self.CI.CP_SP + self.CP_SP = self.CI.get_longitudinal_tuning(self.CP, self.CP_SP) # continue onto next fingerprinting step in pandad self.params.put_bool("FirmwareQueryDone", True)