Commit 17ef8c61 authored by Don Gagne's avatar Don Gagne

Add WiFi calibration warning

parent b19d393b
...@@ -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 } QGCPalette { id: qgcPal; colorGroupEnabled: panel.enabled }
Component { Component {
......
...@@ -464,3 +464,8 @@ bool APMSensorsComponentController::accelSetupNeeded(void) const ...@@ -464,3 +464,8 @@ bool APMSensorsComponentController::accelSetupNeeded(void) const
{ {
return _sensorsComponent->accelSetupNeeded(); return _sensorsComponent->accelSetupNeeded();
} }
bool APMSensorsComponentController::usingUDPLink(void)
{
return _vehicle->priorityLink()->getLinkConfiguration()->type() == LinkConfiguration::TypeUdp;
}
...@@ -77,6 +77,7 @@ public: ...@@ -77,6 +77,7 @@ public:
Q_INVOKABLE void calibrateAccel(void); Q_INVOKABLE void calibrateAccel(void);
Q_INVOKABLE void cancelCalibration(void); Q_INVOKABLE void cancelCalibration(void);
Q_INVOKABLE void nextClicked(void); Q_INVOKABLE void nextClicked(void);
Q_INVOKABLE bool usingUDPLink(void);
bool compassSetupNeeded(void) const; bool compassSetupNeeded(void) const;
bool accelSetupNeeded(void) const; bool accelSetupNeeded(void) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment