onCalibrationSuccess:showMessage("ESC Calibration","Calibration complete. You can disconnect your battery now if you like.",StandardButton.Ok)
onCalibrationSuccess:showMessage("ESC Calibration","Calibration complete. You can disconnect your battery now if you like.",StandardButton.Ok)
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)
onConnectBattery:showMessage("ESC Calibration",highlightPrefix+"WARNING: Props must be removed from vehicle prior to performing ESC calibration."+highlightSuffix+" 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)
onDisconnectBattery:showMessage("ESC Calibration failed","You must disconnect the battery prior to performing ESC Calibration. Disconnect your battery and try again.",StandardButton.Ok)
}
}
...
@@ -239,7 +243,7 @@ QGCView {
...
@@ -239,7 +243,7 @@ QGCView {
QGCLabel{
QGCLabel{
color:palette.warningText
color:palette.warningText
text:"<font color=\"yellow\">WARNING: Propellers must be removed from vehicle prior to performing ESC calibration.</font>"
text:"WARNING: Propellers must be removed from vehicle prior to performing ESC calibration."
}
}
QGCLabel{
QGCLabel{
...
@@ -273,7 +277,7 @@ QGCView {
...
@@ -273,7 +277,7 @@ QGCView {
QGCLabel{
QGCLabel{
color:palette.warningText
color:palette.warningText
text:"<font color=\"yellow\">WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration.</font>"
text:"WARNING: Propellers must be removed from vehicle prior to performing UAVCAN ESC configuration."
}
}
QGCLabel{
QGCLabel{
...
@@ -341,7 +345,7 @@ QGCView {
...
@@ -341,7 +345,7 @@ QGCView {
wrapMode:Text.WordWrap
wrapMode:Text.WordWrap
text:"Batteries show less voltage at high throttle. Enter the difference in Volts between idle throttle and full "+
text:"Batteries show less voltage at high throttle. Enter the difference in Volts between idle throttle and full "+
"throttle, divided by the number of battery cells. Leave at the default if unsure. "+
"throttle, divided by the number of battery cells. Leave at the default if unsure. "+
"<font color=\"yellow\">If this value is set too high, the battery might be deep discharged and damaged.</font>"
highlightPrefix+"If this value is set too high, the battery might be deep discharged and damaged."+highlightSuffix
readonlypropertystringwelcomeText:"QGroundControl can upgrade the firmware on Pixhawk devices, 3DR Radios and PX4 Flow Smart Cameras."
readonlypropertystringwelcomeText:"QGroundControl can upgrade the firmware on Pixhawk devices, 3DR Radios and PX4 Flow Smart Cameras."
readonlypropertystringplugInText:highlightPrefix+"Plug in your device"+highlightSuffix+" via USB to "+highlightPrefix+"start"+highlightSuffix+" firmware upgrade"
readonlypropertystringplugInText:highlightPrefix+"Plug in your device"+highlightSuffix+" via USB to "+highlightPrefix+"start"+highlightSuffix+" firmware upgrade"
...
@@ -79,12 +79,12 @@ QGCView {
...
@@ -79,12 +79,12 @@ QGCView {
initialBoardSearch=false
initialBoardSearch=false
statusTextArea.append(plugInText)
statusTextArea.append(plugInText)
}
}
onBoardGone:{
onBoardGone:{
initialBoardSearch=false
initialBoardSearch=false
statusTextArea.append(plugInText)
statusTextArea.append(plugInText)
}
}
onBoardFound:{
onBoardFound:{
if(initialBoardSearch){
if(initialBoardSearch){
// Board was found right away, so something is already plugged in before we've started upgrade
// Board was found right away, so something is already plugged in before we've started upgrade