17 Q_PROPERTY(QQuickItem* statusLog MEMBER _statusLog)
18 Q_PROPERTY(QQuickItem* progressBar MEMBER _progressBar)
20 Q_PROPERTY(QQuickItem* orientationCalAreaHelpText MEMBER _orientationCalAreaHelpText)
65 bool calibrationActive()
const {
return _magCalInProgress || _gyroCalInProgress || _accelCalInProgress || _airspeedCalInProgress || _levelCalInProgress; }
80 void _handleUASTextMessage(
int uasId,
int compId,
int severity, QString text,
const QString &description);
81 void _handleParametersReset(
bool success);
84 void _startLogCalibration(
void);
85 void _startVisualCalibration(
void);
86 void _appendStatusLog(
const QString& text);
87 void _refreshParams(
void);
88 void _hideAllCalAreas(
void);
89 void _resetInternalState(
void);
91 enum StopCalibrationCode {
92 StopCalibrationSuccess,
93 StopCalibrationFailed,
94 StopCalibrationCancelled
96 void _stopCalibration(StopCalibrationCode code);
98 void _updateAndEmitShowOrientationCalArea(
bool show);
100 QQuickItem* _statusLog;
101 QQuickItem* _progressBar;
102 QQuickItem* _orientationCalAreaHelpText;
104 bool _showGyroCalArea;
105 bool _showOrientationCalArea;
107 bool _gyroCalInProgress;
108 bool _magCalInProgress;
109 bool _accelCalInProgress;
110 bool _airspeedCalInProgress;
111 bool _levelCalInProgress;
113 bool _orientationCalDownSideDone;
114 bool _orientationCalUpsideDownSideDone;
115 bool _orientationCalLeftSideDone;
116 bool _orientationCalRightSideDone;
117 bool _orientationCalNoseDownSideDone;
118 bool _orientationCalTailDownSideDone;
120 bool _orientationCalDownSideVisible;
121 bool _orientationCalUpsideDownSideVisible;
122 bool _orientationCalLeftSideVisible;
123 bool _orientationCalRightSideVisible;
124 bool _orientationCalNoseDownSideVisible;
125 bool _orientationCalTailDownSideVisible;
127 bool _orientationCalDownSideInProgress;
128 bool _orientationCalUpsideDownSideInProgress;
129 bool _orientationCalLeftSideInProgress;
130 bool _orientationCalRightSideInProgress;
131 bool _orientationCalNoseDownSideInProgress;
132 bool _orientationCalTailDownSideInProgress;
134 bool _orientationCalDownSideRotate;
135 bool _orientationCalUpsideDownSideRotate;
136 bool _orientationCalLeftSideRotate;
137 bool _orientationCalRightSideRotate;
138 bool _orientationCalNoseDownSideRotate;
139 bool _orientationCalTailDownSideRotate;
141 bool _unknownFirmwareVersion;
142 bool _waitingForCancel;
144 static const int _supportedFirmwareCalVersion = 2;