From ab66732ee9d897ad65d0cf4ded1f7f7a87f9f841 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 24 Sep 2023 11:33:19 -0400 Subject: [PATCH] ui: Some comments in sunnypilot settings (#291) --- selfdrive/ui/qt/offroad/sunnypilot_settings.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/offroad/sunnypilot_settings.cc b/selfdrive/ui/qt/offroad/sunnypilot_settings.cc index 7b023c588d..ae8c3b0281 100644 --- a/selfdrive/ui/qt/offroad/sunnypilot_settings.cc +++ b/selfdrive/ui/qt/offroad/sunnypilot_settings.cc @@ -276,7 +276,7 @@ SPControlsPanel::SPControlsPanel(QWidget *parent) : ListWidget(parent) { std::vector updateTogglesNamesAlert{ "CustomTorqueLateral", "LiveTorque" }; - // toggle names to trigger updateToggles() when toggleFlipped and display ConfirmationDialog::alert + // toggle for offroadTransition when going onroad/offroad std::vector toggleOffroad{ "EnableMads", "DisengageLateralOnBrake", "AccMadsCombo", "MadsCruiseMain", "BelowSpeedPause", "EnforceTorqueLateral", "CustomTorqueLateral", "LiveTorque" @@ -548,6 +548,8 @@ SPVehiclesPanel::SPVehiclesPanel(QWidget *parent) : QWidget(parent) { SPVehiclesTogglesPanel::SPVehiclesTogglesPanel(SPVehiclesPanel *parent) : ListWidget(parent) { setSpacing(50); + + // Hyundai/Kia/Genesis addItem(new LabelControl(tr("Hyundai/Kia/Genesis"))); auto hkgSmoothStop = new ParamControl( "HkgSmoothStop", @@ -558,6 +560,7 @@ SPVehiclesTogglesPanel::SPVehiclesTogglesPanel(SPVehiclesPanel *parent) : ListWi hkgSmoothStop->setConfirmation(true, false); addItem(hkgSmoothStop); + // Toyota/Lexus addItem(new LabelControl(tr("Toyota/Lexus"))); stockLongToyota = new ParamControl( "StockLongToyota",