Browse Source

Add WiFi calibration warning

QGC4.4
Don Gagne 9 years ago
parent
commit
17ef8c6174
  1. 8
      src/AutoPilotPlugins/APM/APMSensorsComponent.qml
  2. 5
      src/AutoPilotPlugins/APM/APMSensorsComponentController.cc
  3. 1
      src/AutoPilotPlugins/APM/APMSensorsComponentController.h

8
src/AutoPilotPlugins/APM/APMSensorsComponent.qml

@ -169,6 +169,14 @@ QGCView { @@ -169,6 +169,14 @@ QGCView {
}
}
Component.onCompleted: {
var usingUDP = controller.usingUDPLink()
if (usingUDP) {
console.log("onUsingUDPLink")
showMessage("Sensor Calibration", "Performing sensor calibration over a WiFi connection is known to be unreliable. You should disconnect and perform calibration using a direct USB connection instead.", StandardButton.Ok)
}
}
QGCPalette { id: qgcPal; colorGroupEnabled: panel.enabled }
Component {

5
src/AutoPilotPlugins/APM/APMSensorsComponentController.cc

@ -464,3 +464,8 @@ bool APMSensorsComponentController::accelSetupNeeded(void) const @@ -464,3 +464,8 @@ bool APMSensorsComponentController::accelSetupNeeded(void) const
{
return _sensorsComponent->accelSetupNeeded();
}
bool APMSensorsComponentController::usingUDPLink(void)
{
return _vehicle->priorityLink()->getLinkConfiguration()->type() == LinkConfiguration::TypeUdp;
}

1
src/AutoPilotPlugins/APM/APMSensorsComponentController.h

@ -77,6 +77,7 @@ public: @@ -77,6 +77,7 @@ public:
Q_INVOKABLE void calibrateAccel(void);
Q_INVOKABLE void cancelCalibration(void);
Q_INVOKABLE void nextClicked(void);
Q_INVOKABLE bool usingUDPLink(void);
bool compassSetupNeeded(void) const;
bool accelSetupNeeded(void) const;

Loading…
Cancel
Save