From e321be0637730d21e981c340bb622371c286cde8 Mon Sep 17 00:00:00 2001 From: discountchubbs Date: Wed, 26 Mar 2025 06:59:55 -0700 Subject: [PATCH] Fix comments --- opendbc_repo | 2 +- selfdrive/car/card.py | 1 - .../ui/sunnypilot/qt/offroad/settings/vehicle_panel.cc | 1 - sunnypilot/selfdrive/car/interfaces.py | 7 +++---- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/opendbc_repo b/opendbc_repo index d247740418..74a074d930 160000 --- a/opendbc_repo +++ b/opendbc_repo @@ -1 +1 @@ -Subproject commit d2477404186ab00cb3249398159c47b2c3369e1b +Subproject commit 74a074d930dcd6051baeb2338824789bd61b048a diff --git a/selfdrive/car/card.py b/selfdrive/car/card.py index 8abadb73ff..33c229958d 100755 --- a/selfdrive/car/card.py +++ b/selfdrive/car/card.py @@ -112,7 +112,6 @@ 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.CI.apply_longitudinal_tuning() # continue onto next fingerprinting step in pandad self.params.put_bool("FirmwareQueryDone", True) diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.cc index 291a334f5a..3af6f7e162 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.cc @@ -71,7 +71,6 @@ VehiclePanel::VehiclePanel(QWidget *parent) : QFrame(parent) { } void VehiclePanel::showEvent(QShowEvent *event) { - QFrame::showEvent(event); updatePanel(offroad); updateCarToggles(); } diff --git a/sunnypilot/selfdrive/car/interfaces.py b/sunnypilot/selfdrive/car/interfaces.py index 81f1556b36..dd49a59a2a 100644 --- a/sunnypilot/selfdrive/car/interfaces.py +++ b/sunnypilot/selfdrive/car/interfaces.py @@ -34,9 +34,9 @@ def initialize_custom_longitudinal_tuning(CP: structs.CarParams, CP_SP: structs. if tuning_option_str is not None: tuning_option_str = tuning_option_str.strip() if tuning_option_str != "0": - CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING.value + CP_SP.flags |= HyundaiFlagsSP.LONGTUNING.value if params.get_bool("HyundaiSmootherBraking"): - CP_SP.flags |= HyundaiFlagsSP.HKGLONGTUNING_BRAKING.value + CP_SP.flags |= HyundaiFlagsSP.LONGTUNING_BRAKING.value def initialize_radar_tracks(CP: structs.CarParams, CP_SP: structs.CarParamsSP, params: Params = None): @@ -75,8 +75,7 @@ def initialize_neural_network_lateral_control(CP: structs.CarParams, CP_SP: stru def setup_car_interface_sp(CP: structs.CarParams, CP_SP: structs.CarParamsSP, params: Params = None): - if CP.brand == 'hyundai': - initialize_radar_tracks(CP, CP_SP, params) + initialize_radar_tracks(CP, CP_SP, params) initialize_custom_longitudinal_tuning(CP, CP_SP, params) initialize_neural_network_lateral_control(CP, CP_SP, params)