8#include <QtCore/QObject>
9#include <QtCore/QString>
10#include <QtCore/QJsonDocument>
34 Q_INVOKABLE
void imageClicked(QSizeF displaySize,
float x,
float y);
41 void load(
const QString& json_file);
89 void updateGeometryImage();
92 bool parseJson(
const QJsonDocument& json);
94 void updateActuatorActions();
96 void subscribeFact(
Fact* fact);
98 Fact* getFact(
const QString& paramName);
100 void highlightActuators(
bool highlight);
102 void updateFunctionMetadata();
104 QSet<Fact*> _subscribedFacts{};
105 QJsonDocument _jsonMetadata;
114 bool _motorAssignmentEnabled{
false};
115 bool _hasUnsetRequiredFunctions{
false};
116 bool _imageRefreshFlag{
false};
117 int _selectedActuatorOutput{0};
119 QMap<int, QString> _usedMixerLabels;
QmlObjectListModel * actuatorOutputs()
void actuatorOutputsChanged()
bool initMotorAssignment()
void hasUnsetRequiredFunctionsChanged()
void abortMotorAssignment()
bool isMultirotor() const
void imageRefreshFlagChanged()
ActuatorTesting::ActuatorTest * actuatorTest()
const QString & initializationError() const
QmlObjectListModel *actuatorOutputs READ actuatorOutputs NOTIFY actuatorOutputsChanged(QmlObjectListModel *actuatorActions READ actuatorActions NOTIFY actuatorActionsChanged) 1(bool isMultirotor READ isMultirotor CONSTANT) 1(bool imageRefreshFlag READ imageRefreshFlag NOTIFY imageRefreshFlagChanged) 1(bool hasUnsetRequiredFunctions READ hasUnsetRequiredFunctions NOTIFY hasUnsetRequiredFunctionsChanged) 1(bool motorAssignmentActive READ motorAssignmentActive NOTIFY motorAssignmentActiveChanged) 1(bool motorAssignmentEnabled READ motorAssignmentEnabled NOTIFY motorAssignmentEnabledChanged) 1(QString motorAssignmentMessage READ motorAssignmentMessage NOTIFY motorAssignmentMessageChanged) 1(ActuatorTesting voi selectActuatorOutput)(int index)
bool imageRefreshFlag() const
bool isInitialized() const
void motorAssignmentMessageChanged()
void startMotorAssignment()
void motorAssignmentActiveChanged()
ActuatorOutputs::ActuatorOutput * selectedActuatorOutput() const
void actuatorActionsChanged()
void motorAssignmentEnabledChanged()
void load(const QString &json_file)
bool hasUnsetRequiredFunctions() const
bool motorAssignmentEnabled() const
const QString & motorAssignmentMessage() const
bool motorAssignmentActive() const
void selectedActuatorOutputChanged()
QmlObjectListModel * actuatorActions()
A Fact is used to hold a single value within the system.
const QString & message() const