From 90fc3422bb8c1c2f38550cfe6bb64a34f0227fc6 Mon Sep 17 00:00:00 2001 From: AlexandreSato Date: Tue, 29 Oct 2024 16:34:04 -0300 Subject: [PATCH] cleanup --- selfdrive/ui/qt/offroad/developer_panel.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/selfdrive/ui/qt/offroad/developer_panel.cc b/selfdrive/ui/qt/offroad/developer_panel.cc index e509235d52..58d92c119e 100644 --- a/selfdrive/ui/qt/offroad/developer_panel.cc +++ b/selfdrive/ui/qt/offroad/developer_panel.cc @@ -28,12 +28,10 @@ DeveloperPanel::DeveloperPanel(SettingsWindow *parent) : ListWidget(parent) { .arg(tr("WARNING: openpilot longitudinal control is in alpha for this car and will disable Automatic Emergency Braking (AEB).")) .arg(tr("On this car, openpilot defaults to the car's built-in ACC instead of openpilot's longitudinal control. " "Enable this to switch to openpilot longitudinal control. Enabling Experimental mode is recommended when enabling openpilot longitudinal control alpha.")), - "../assets/offroad/icon_speed_limit.png"); - // QObject::connect(alphaLongToggle, &ParamControl::toggleFlipped, [=](bool state) { - // params.putBool("JoystickDebugMode", false); - // joystickToggle->refresh(); - // }); + "../assets/offroad/icon_speed_limit.png" + ); addItem(alphaLongToggle); + alphaLongToggle->setConfirmation(true, false); // Joystick and longitudinal maneuvers should be hidden on release branches // also the toggles should be not available to change in onroad state