mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
@@ -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);
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ public slots:
|
||||
void updateToggles(bool _offroad);
|
||||
|
||||
private:
|
||||
Params params;
|
||||
QStackedLayout* main_layout = nullptr;
|
||||
QWidget* sunnypilotScreen = nullptr;
|
||||
ScrollViewSP *sunnypilotScroller = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user