mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-10 18:23:44 +08:00
ui: include MADS enabled state to engaged check (#976)
* ui: include MADS enabled state to `engaged` check * let's bump it up
This commit is contained in:
@@ -20,6 +20,11 @@ class UIStateSP : public UIState {
|
||||
public:
|
||||
UIStateSP(QObject *parent = 0);
|
||||
void updateStatus() override;
|
||||
inline bool engaged() const override {
|
||||
return scene.started && (
|
||||
(*sm)["selfdriveState"].getSelfdriveState().getEnabled() || (*sm)["selfdriveStateSP"].getSelfdriveStateSP().getMads().getEnabled()
|
||||
);
|
||||
}
|
||||
void setSunnylinkRoles(const std::vector<RoleModel> &roles);
|
||||
void setSunnylinkDeviceUsers(const std::vector<UserModel> &users);
|
||||
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ class UIState : public QObject {
|
||||
public:
|
||||
UIState(QObject* parent = 0);
|
||||
virtual void updateStatus();
|
||||
inline bool engaged() const {
|
||||
virtual inline bool engaged() const {
|
||||
return scene.started && (*sm)["selfdriveState"].getSelfdriveState().getEnabled();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user