mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 03:13:48 +08:00
c85b6a0d1c
* branches: track sunnypilot release branches separately * more remotes for legacy support * bruh * revert
27 lines
588 B
C++
27 lines
588 B
C++
#pragma once
|
|
|
|
#ifdef SUNNYPILOT
|
|
#include "selfdrive/ui/sunnypilot/qt/offroad/settings/settings.h"
|
|
#else
|
|
#include "selfdrive/ui/qt/offroad/settings.h"
|
|
#endif
|
|
|
|
class DeveloperPanel : public ListWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit DeveloperPanel(SettingsWindow *parent);
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
protected:
|
|
Params params;
|
|
ParamControl* adbToggle;
|
|
ParamControl* joystickToggle;
|
|
ParamControl* longManeuverToggle;
|
|
ParamControl* experimentalLongitudinalToggle;
|
|
bool is_release;
|
|
bool offroad = false;
|
|
|
|
private slots:
|
|
void updateToggles(bool _offroad);
|
|
};
|