onOldFirmware:showMessage("ESC Calibration","QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade to a newer firmware.",StandardButton.Ok)
onNewerFirmware:showMessage("ESC Calibration","QGroundControl cannot perform ESC Calibration with this version of firmware. You will need to upgrade QGroundControl.",StandardButton.Ok)
onBatteryConnected:showMessage("ESC Calibration","Performing calibration. This will take a few seconds..",0)
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)
onDisconnectBattery:showMessage("ESC Calibration failed","You must disconnect the battery prior to performing ESC Calibration. Disconnect your battery and try again.",StandardButton.Ok)
}
Column{
id:batteryColumn
anchors.fill:parent
spacing:10
anchors.verticalCenter:parent.verticalCenter
x:(parent.x+20)
Row{
spacing:10
QGCLabel{
text:"POWER CONFIG"
font.pointSize:ScreenTools.largeFontPointSize
}
QGCLabel{
text:"Battery"
color:palette.text
font.pointSize:ScreenTools.mediumFontPointSize
}
Rectangle{
width:parent.width
height:120
color:palette.windowShade
Column{
id:voltageCol
id:batteryColumn
spacing:10
anchors.verticalCenter:parent.verticalCenter
x:(parent.x+20)
Row{
spacing:10
QGCLabel{text:"Number of Cells (in Series)";width:firstColumnWidth;anchors.baseline:cellsField.baseline}
FactTextField{
id:cellsField
width:textEditWidth
fact:Fact{name:"BAT_N_CELLS"}
showUnits:true
Column{
id:voltageCol
spacing:10
Row{
spacing:10
QGCLabel{text:"Number of Cells (in Series)";width:firstColumnWidth;anchors.baseline:cellsField.baseline}