145 void _handleUASTextMessage(quint32 uasId,
int compId,
int severity, QString text,
const QString& description);
146 void _handleLargeVehicleCalibrationMessage(quint32 uasId,
int compId,
int severity, QString text,
147 const QString& description);
148 void _handleLargeVehicleCommandResult(quint32 vehicleId,
int targetComponent,
int command,
int ackResult,
150 void _largeVehicleCalibrationTimedOut(
void);
151 void _handleParametersReset(
bool success);
154 void _startLogCalibration(
void);
155 void _startVisualCalibration(
void);
156 void _setCalibrationProgress(
double progress);
157 void _appendStatusLog(
const QString& text);
158 void _refreshParams(
void);
159 void _watchLargeVehicleCalibration(
void);
160 void _stopWatchingLargeVehicleCalibration(
void);
161 void _setLargeVehicleCalibrationPending(
bool pending);
162 void _hideAllCalAreas(
void);
165 enum StopCalibrationCode {
166 StopCalibrationSuccess,
167 StopCalibrationFailed,
168 StopCalibrationCancelled
170 void _stopCalibration(StopCalibrationCode code);
172 void _updateAndEmitShowOrientationCalArea(
bool show);
175 bool _showGyroCalArea;
176 bool _showOrientationCalArea;
178 bool _gyroCalInProgress;
179 bool _magCalInProgress;
180 bool _accelCalInProgress;
181 bool _airspeedCalInProgress;
182 bool _levelCalInProgress;
183 bool _baroCalInProgress;
185 bool _orientationCalDownSideVisible;
186 bool _orientationCalUpsideDownSideVisible;
187 bool _orientationCalLeftSideVisible;
188 bool _orientationCalRightSideVisible;
189 bool _orientationCalNoseDownSideVisible;
190 bool _orientationCalTailDownSideVisible;
199 bool _unknownFirmwareVersion;
200 bool _waitingForCancel;
201 bool _sideAlreadyDone =
false;
202 QString _calibrationLog;
204 QString _calibrationFailureText;
205 QString _calibrationDetail;
206 double _calibrationProgress = 0;
208 static const int _supportedFirmwareCalVersion = 2;
209 QTimer _largeVehicleCalibrationTimer;
210 bool _largeVehicleCalibrationPending =
false;
211 static constexpr int _largeVehicleCalibrationTimeoutMs = 5000;