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."))
}
ColumnLayout{
...
...
@@ -86,136 +94,159 @@ SetupPage {
drawArrowhead(ctx,x2,y2,rd);
}
PowerComponentController{
id:controller
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."))
onClicked:mainWindow.showComponentDialog(calcVoltageDividerDlgComponent,qsTr("Calculate Voltage Divider"),mainWindow.showDialogDefaultWidth,StandardButton.Close)
text:qsTr("If the battery voltage reported by the vehicle is largely different than the voltage read externally using a voltmeter you can adjust the voltage multiplier value to correct this. ")+
qsTr("Click the Calculate button for help with calculating a new value.")
visible:battVoltageDividerAvailable
}
QGCLabel{
id:ampPerVoltLabel
text:qsTr("Amps per volt")
visible:battAmpsPerVoltAvailable
}
FactTextField{
id:ampPerVoltField
fact:battAmpsPerVolt
visible:battAmpsPerVoltAvailable
}
QGCButton{
id:ampPerVoltCalculateButton
text:qsTr("Calculate")
onClicked:mainWindow.showComponentDialog(calcAmpsPerVoltDlgComponent,qsTr("Calculate Amps per Volt"),mainWindow.showDialogDefaultWidth,StandardButton.Close)
text:qsTr("If the current draw reported by the vehicle is largely different than the current read externally using a current meter you can adjust the amps per volt value to correct this. ")+
qsTr("Click the Calculate button for help with calculating a new value.")
visible:battAmpsPerVoltAvailable
}
}// Grid
}// QGCGroupBox - Battery settings
QGCGroupBox{
Layout.maximumWidth:batteryGroup.width
Layout.fillWidth:true
title:qsTr("ESC PWM Minimum and Maximum Calibration")
ColumnLayout{
anchors.left:parent.left
anchors.right:parent.right
spacing:ScreenTools.defaultFontPixelWidth
QGCCheckBox{
id:showAdvanced
Layout.columnSpan:batteryGrid.columns
text:qsTr("Show Advanced Settings")
}
QGCLabel{
color:qgcPal.warningText
wrapMode:Text.WordWrap
text:qsTr("WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.")