From 0e151e51bc4697cb9569c8c76e226c71059e91e2 Mon Sep 17 00:00:00 2001 From: DevTekVE Date: Fri, 4 Apr 2025 21:21:40 +0200 Subject: [PATCH] Update HKG Angle Smoothing Factor description in Developer Panel Enhanced the description to clarify its effect on steering behavior. Included details on how the smoothing factor impacts steering smoothness using EMA, aiding user understanding. --- selfdrive/ui/qt/offroad/developer_panel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/offroad/developer_panel.cc b/selfdrive/ui/qt/offroad/developer_panel.cc index ab80ef904c..b22ed10dbd 100644 --- a/selfdrive/ui/qt/offroad/developer_panel.cc +++ b/selfdrive/ui/qt/offroad/developer_panel.cc @@ -57,7 +57,7 @@ DeveloperPanel::DeveloperPanel(SettingsWindow *parent) : ListWidget(parent) { addItem(errorLogBtn); #ifdef SUNNYPILOT - hkgAngleSmoothingFactor = new OptionControlSP("HkgTuningAngleSmoothingFactor", tr("HKG Angle Smoothing Factor"), tr("HKG angle smoothing factor for sunnypilot."), "../assets/offroad/icon_blank.png", {0, 10}, 1); + hkgAngleSmoothingFactor = new OptionControlSP("HkgTuningAngleSmoothingFactor", tr("HKG Angle Smoothing Factor"), tr("Applies EMA (Exponential Moving Average) to the desired angle steering.
A value closer to 1 means no smoothing.
A value closer to 0 means very smooth (and thus likely too 'soft' steering)."), "../assets/offroad/icon_blank.png", {0, 10}, 1); connect(hkgAngleSmoothingFactor, &OptionControlSP::updateLabels, hkgAngleSmoothingFactor, [=]() { this->updateToggles(offroad); });