QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PowerComponentController.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtQmlIntegration/QtQmlIntegration>
4
6
9{
10 Q_OBJECT
11 QML_ELEMENT
12public:
14
15 Q_INVOKABLE void calibrateEsc(void);
16 Q_INVOKABLE void startBusConfigureActuators(void);
17 Q_INVOKABLE void stopBusConfigureActuators(void);
18
19signals:
20 void oldFirmware(void);
21 void newerFirmware(void);
23 void connectBattery(void);
25 void batteryConnected(void);
26 void calibrationFailed(const QString& errorMessage);
27 void calibrationSuccess(const QStringList& warningMessages);
28
29private slots:
30 void _handleVehicleTextMessage(int vehicleId, int compId, int severity, QString text, const QString &description);
31
32private:
33 void _stopCalibration(void);
34 void _stopBusConfig(void);
35
36 QStringList _warningMessages;
37 static const int _neededFirmwareRev = 1;
38};
Used for handling missing Facts from C++ code.
Power Component MVC Controller for PowerComponent.qml.
void calibrationSuccess(const QStringList &warningMessages)
void calibrationFailed(const QString &errorMessage)
void incorrectFirmwareRevReporting(void)