onOldFirmware:mainWindow.showMessageDialog(qsTr("ESC Calibration"),qsTr("%1 cannot perform ESC Calibration with this version of firmware. You will need to upgrade to a newer firmware.").arg(QGroundControl.appName))
onNewerFirmware:mainWindow.showMessageDialog(qsTr("ESC Calibration"),qsTr("%1 cannot perform ESC Calibration with this version of firmware. You will need to upgrade %1.").arg(QGroundControl.appName))
onBatteryConnected:mainWindow.showMessageDialog(qsTr("ESC Calibration"),qsTr("Performing calibration. This will take a few seconds.."))
onCalibrationSuccess:mainWindow.showMessageDialog(qsTr("ESC Calibration"),qsTr("Calibration complete. You can disconnect your battery now if you like."))
onConnectBattery:mainWindow.showMessageDialog(qsTr("ESC Calibration"),_highlightPrefix+qsTr("WARNING: Props must be removed from vehicle prior to performing ESC calibration.")+_highlightSuffix+qsTr(" Connect the battery now and calibration will begin."))
onDisconnectBattery:mainWindow.showMessageDialog(qsTr("ESC Calibration failed"),qsTr("You must disconnect the battery prior to performing ESC Calibration. Disconnect your battery and try again."))
onCalibrationSuccess:{popupDialog.enableAcceptButton();textLabel.text=qsTr("Calibration complete. You can disconnect your battery now if you like.")}
}
ColumnLayout{
QGCLabel{
id: textLabel
wrapMode:Text.WordWrap
text:_highlightPrefix+qsTr("WARNING: Props must be removed from vehicle prior to performing ESC calibration.")+_highlightSuffix+qsTr(" Connect the battery now and calibration will begin.")