8#include <QtCore/QObject>
10#include <QtCore/QString>
11#include <QtCore/QStringList>
12#include <QtCore/QJsonDocument>
36 Q_INVOKABLE
void imageClicked(QSizeF displaySize,
float x,
float y);
43 void load(
const QString& json_file,
const QJsonDocument& metadata);
94 void updateGeometryImage();
97 bool parseJson(
const QJsonDocument& json);
99 void updateActuatorActions();
101 void subscribeFact(
Fact* fact);
103 Fact* getFact(
const QString& paramName);
105 void highlightActuators(
bool highlight);
107 void updateFunctionMetadata();
109 QSet<Fact*> _subscribedFacts{};
110 QJsonDocument _jsonMetadata;
114 QmlObjectListModel* _actuatorOutputs =
new QmlObjectListModel(
this);
115 QmlObjectListModel* _actuatorActions =
new QmlObjectListModel(
this);
116 ActuatorTesting::ActuatorTest _actuatorTest;
117 Mixer::Mixers _mixer;
118 MotorAssignment _motorAssignment;
119 bool _motorAssignmentEnabled{
false};
120 bool _hasUnsetRequiredFunctions{
false};
121 bool _imageRefreshFlag{
false};
122 int _selectedActuatorOutput{0};
123 Vehicle* _vehicle{
nullptr};
124 QMap<int, QString> _usedMixerLabels;
QmlObjectListModel * actuatorOutputs()
void actuatorOutputsChanged()
Q_INVOKABLE bool initMotorAssignment()
void hasUnsetRequiredFunctionsChanged()
Q_INVOKABLE void abortMotorAssignment()
bool isMultirotor() const
void imageRefreshFlagChanged()
ActuatorTesting::ActuatorTest * actuatorTest()
const QString & initializationError() const
bool imageRefreshFlag() const
bool isInitialized() const
void motorAssignmentMessageChanged()
Q_INVOKABLE void selectActuatorOutput(int index)
Q_INVOKABLE void startMotorAssignment()
Q_INVOKABLE void imageClicked(QSizeF displaySize, float x, float y)
void motorAssignmentActiveChanged()
ActuatorOutputs::ActuatorOutput * selectedActuatorOutput() const
void actuatorActionsChanged()
void motorAssignmentEnabledChanged()
void load(const QString &json_file, const QJsonDocument &metadata)
bool hasUnsetRequiredFunctions() const
Q_INVOKABLE void spinCurrentMotor()
QMap< int, QStringList > channelsByFunction() const
Labels of the output channels each assigned output function (e.g. Motor 1) is set on,...
bool motorAssignmentEnabled() const
const QString & motorAssignmentMessage() const
bool motorAssignmentActive() const
void selectedActuatorOutputChanged()
Actuators(QObject *parent, Vehicle *vehicle)
QmlObjectListModel * actuatorActions()
A Fact is used to hold a single value within the system.