Commit 919955e7 authored by Don Gagne's avatar Don Gagne

Merge pull request #1691 from DonLakeFlyer/ESCCal

Esc cal: Yellow text for prop warnings
parents ff9ba294 eb57adfa
......@@ -98,7 +98,7 @@ QGCView {
onBatteryConnected: showMessage("ESC Calibration", "Performing calibration. This will take a few seconds..", 0)
onCalibrationFailed: showMessage("ESC Calibration failed", errorMessage, StandardButton.Ok)
onCalibrationSuccess: showMessage("ESC Calibration", "Calibration complete. You can disconnect your battery now if you like.", StandardButton.Ok)
onConnectBattery: showMessage("ESC Calibration", "WARNING: Props must be removed from vehicle prior to performing ESC calibration.\n\nConnect the battery now and calibration will begin.", 0)
onConnectBattery: showMessage("ESC Calibration", "<font color=\"yellow\">WARNING: Props must be removed from vehicle prior to performing ESC calibration.</font> Connect the battery now and calibration will begin.", 0)
onDisconnectBattery: showMessage("ESC Calibration failed", "You must disconnect the battery prior to performing ESC Calibration. Disconnect your battery and try again.", StandardButton.Ok)
}
......@@ -248,7 +248,12 @@ QGCView {
spacing: 10
QGCLabel {
text: "WARNING:\n\nPropellers must be removed from vehicle prior to performing ESC calibration.\nYou must use USB connection for this operation.\n"
color: "yellow"
text: "<font color=\"yellow\">WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.</font>"
}
QGCLabel {
text: "You must use USB connection for this operation."
}
QGCButton {
......
......@@ -84,6 +84,9 @@ void PowerComponentController::_handleUASTextMessage(int uasId, int compId, int
return;
}
#if 0
// FIXME: Cal version check is not working. Needs to be able to cancel, calibration
int firmwareRev = parts[0].toInt();
if (firmwareRev < _neededFirmwareRev) {
emit oldFirmware();
......@@ -93,6 +96,7 @@ void PowerComponentController::_handleUASTextMessage(int uasId, int compId, int
emit newerFirmware();
return;
}
#endif
}
if (text == "Connect battery now") {
......
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