|
|
|
@ -33,6 +33,7 @@ public:
@@ -33,6 +33,7 @@ public:
|
|
|
|
|
Q_PROPERTY(bool imageRefreshFlag READ imageRefreshFlag NOTIFY imageRefreshFlagChanged) |
|
|
|
|
Q_PROPERTY(bool hasUnsetRequiredFunctions READ hasUnsetRequiredFunctions NOTIFY hasUnsetRequiredFunctionsChanged) |
|
|
|
|
Q_PROPERTY(bool motorAssignmentActive READ motorAssignmentActive NOTIFY motorAssignmentActiveChanged) |
|
|
|
|
Q_PROPERTY(bool motorAssignmentEnabled READ motorAssignmentEnabled NOTIFY motorAssignmentEnabledChanged) |
|
|
|
|
Q_PROPERTY(QString motorAssignmentMessage READ motorAssignmentMessage NOTIFY motorAssignmentMessageChanged) |
|
|
|
|
|
|
|
|
|
Q_PROPERTY(ActuatorTesting::ActuatorTest* actuatorTest READ actuatorTest CONSTANT) |
|
|
|
@ -75,6 +76,7 @@ public:
@@ -75,6 +76,7 @@ public:
|
|
|
|
|
Q_INVOKABLE void spinCurrentMotor() { _motorAssignment.spinCurrentMotor(); } |
|
|
|
|
Q_INVOKABLE void abortMotorAssignment(); |
|
|
|
|
bool motorAssignmentActive() const { return _motorAssignment.active(); } |
|
|
|
|
bool motorAssignmentEnabled() const { return _motorAssignmentEnabled; } |
|
|
|
|
const QString& motorAssignmentMessage() const { return _motorAssignment.message(); } |
|
|
|
|
|
|
|
|
|
public slots: |
|
|
|
@ -86,6 +88,7 @@ signals:
@@ -86,6 +88,7 @@ signals:
|
|
|
|
|
void imageRefreshFlagChanged(); |
|
|
|
|
void hasUnsetRequiredFunctionsChanged(); |
|
|
|
|
void motorAssignmentActiveChanged(); |
|
|
|
|
void motorAssignmentEnabledChanged(); |
|
|
|
|
void motorAssignmentMessageChanged(); |
|
|
|
|
void actuatorActionsChanged(); |
|
|
|
|
|
|
|
|
@ -112,6 +115,7 @@ private:
@@ -112,6 +115,7 @@ private:
|
|
|
|
|
ActuatorTesting::ActuatorTest _actuatorTest; |
|
|
|
|
Mixer::Mixers _mixer; |
|
|
|
|
MotorAssignment _motorAssignment; |
|
|
|
|
bool _motorAssignmentEnabled{false}; |
|
|
|
|
bool _hasUnsetRequiredFunctions{false}; |
|
|
|
|
bool _imageRefreshFlag{false}; ///< indicator to QML to reload the image
|
|
|
|
|
int _selectedActuatorOutput{0}; |
|
|
|
|