Reapply "test btn"

This reverts commit 9b36b2e085.
This commit is contained in:
Jason Wen
2025-03-23 22:16:16 -04:00
parent 9b36b2e085
commit 8104a262b0
2 changed files with 8 additions and 0 deletions

View File

@@ -42,6 +42,13 @@ LateralPanel::LateralPanel(SettingsWindowSP *parent) : QFrame(parent) {
});
list->addItem(madsSettingsButton);
auto testBtn = new PushButtonSP(tr("Test Button State"), 800, this, "NeuralNetworkLateralControl");
QObject::connect(testBtn, &QPushButton::clicked, [=]() {
params.putBool("NeuralNetworkLateralControl", !params.getBool("NeuralNetworkLateralControl"));
testBtn->refresh();
});
list->addItem(testBtn);
nnlcToggle = new NeuralNetworkLateralControl();
list->addItem(nnlcToggle);

View File

@@ -29,6 +29,7 @@ public slots:
void updateToggles(bool _offroad);
private:
Params params;
QStackedLayout* main_layout = nullptr;
QWidget* sunnypilotScreen = nullptr;
ScrollViewSP *sunnypilotScroller = nullptr;