diff --git a/selfdrive/ui/qt/offroad/developer_panel.cc b/selfdrive/ui/qt/offroad/developer_panel.cc index 5fe3c27917..9fd5c619a6 100644 --- a/selfdrive/ui/qt/offroad/developer_panel.cc +++ b/selfdrive/ui/qt/offroad/developer_panel.cc @@ -32,6 +32,7 @@ DeveloperPanel::DeveloperPanel(SettingsWindow *parent) : ListWidget(parent) { auto enableGithubRunner = new ParamControl("EnableGithubRunner", tr("Enable GitHub runner service"), tr("Enables or disables the github runner service."), ""); addItem(enableGithubRunner); + // TODO-SP: Move to Vehicles panel when ported back hyundaiRadarTracksToggle = new ParamControl("HyundaiRadarTracksToggle", tr("Hyundai: Enable Radar Tracks"), "", ""); addItem(hyundaiRadarTracksToggle); diff --git a/sunnypilot/selfdrive/car/interfaces.py b/sunnypilot/selfdrive/car/interfaces.py index 265e44ec4d..a92f8f60be 100644 --- a/sunnypilot/selfdrive/car/interfaces.py +++ b/sunnypilot/selfdrive/car/interfaces.py @@ -16,6 +16,8 @@ from opendbc.sunnypilot.car.hyundai.values import HyundaiFlagsSP def setup_car_interface_sp(CP: structs.CarParams, params): if CP.carName == 'hyundai': if CP.flags & HyundaiFlags.MANDO_RADAR and CP.radarUnavailable: + # Having this automatic without a toggle causes a weird process replay diff because + # somehow it sees fewer logs than intended if params.get_bool("HyundaiRadarTracksToggle"): CP.sunnypilotFlags |= HyundaiFlagsSP.ENABLE_RADAR_TRACKS.value if params.get_bool("HyundaiRadarTracks"):