mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-13 13:22:22 +08:00
45de7664bc
* ui: move alpha longitudinal control toggle to Developer panel * show toggle in ui preview * Revert "show toggle in ui preview" This reverts commit 4b12964726b966a906840099ecc1d584e307b614. * write to CarParamsPersistent on ui init * no need for new msg * missed * no icon
22 lines
454 B
C++
22 lines
454 B
C++
#pragma once
|
|
|
|
#include "selfdrive/ui/qt/offroad/settings.h"
|
|
|
|
class DeveloperPanel : public ListWidget {
|
|
Q_OBJECT
|
|
public:
|
|
explicit DeveloperPanel(SettingsWindow *parent);
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
private:
|
|
Params params;
|
|
ParamControl* joystickToggle;
|
|
ParamControl* longManeuverToggle;
|
|
ParamControl* experimentalLongitudinalToggle;
|
|
bool is_release;
|
|
bool offroad;
|
|
|
|
private slots:
|
|
void updateToggles(bool _offroad);
|
|
};
|