Skip to content
Snippets Groups Projects
Commit 11ab9aa0 authored by Don Gagne's avatar Don Gagne
Browse files

Warn used about sensor cal over WiFi

parent a254ee75
Branches
No related tags found
No related merge requests found
......@@ -138,6 +138,15 @@ QGCView {
hideDialog()
}
}
}
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 }
......
......@@ -74,7 +74,11 @@ SensorsComponentController::SensorsComponentController(void) :
_unknownFirmwareVersion(false),
_waitingForCancel(false)
{
}
bool SensorsComponentController::usingUDPLink(void)
{
return _vehicle->priorityLink()->getLinkConfiguration()->type() == LinkConfiguration::TypeUdp;
}
/// Appends the specified text to the status log area in the ui
......
......@@ -95,6 +95,7 @@ public:
Q_INVOKABLE void calibrateLevel(void);
Q_INVOKABLE void calibrateAirspeed(void);
Q_INVOKABLE void cancelCalibration(void);
Q_INVOKABLE bool usingUDPLink(void);
bool fixedWing(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment