readonlypropertystringwelcomeText:qsTr("%1 can upgrade the firmware on Pixhawk devices, SiK Radios and PX4 Flow Smart Cameras.").arg(QGroundControl.appName)
readonlypropertystringplugInText:"<big>"+highlightPrefix+"Plug in your device"+highlightSuffix+" via USB to "+highlightPrefix+"start"+highlightSuffix+" firmware upgrade.</big>"
readonlypropertystringflashFailText:"If upgrade failed, make sure to connect "+highlightPrefix+"directly"+highlightSuffix+" to a powered USB port on your computer, not through a USB hub. "+
"Also make sure you are only powered via USB "+highlightPrefix+"not battery"+highlightSuffix+"."
readonlypropertystringqgcUnplugText1:qsTr("All %1 connections to vehicles must be ").arg(QGroundControl.appName)+highlightPrefix+" disconnected "+highlightSuffix+"prior to firmware upgrade."
readonlypropertystringqgcUnplugText2:highlightPrefix+"<big>Please unplug your Pixhawk and/or Radio from USB.</big>"+highlightSuffix
propertybool_singleFirmwareMode:QGroundControl.corePlugin.options.firmwareUpgradeSingleURL.length!=0///< true: running in special single firmware download mode
readonlypropertystringwelcomeText:qsTr("%1 can upgrade the firmware on Pixhawk devices, SiK Radios and PX4 Flow Smart Cameras.").arg(QGroundControl.appName)
readonlypropertystringplugInText:"<big>"+highlightPrefix+"Plug in your device"+highlightSuffix+" via USB to "+highlightPrefix+"start"+highlightSuffix+" firmware upgrade.</big>"
readonlypropertystringflashFailText:"If upgrade failed, make sure to connect "+highlightPrefix+"directly"+highlightSuffix+" to a powered USB port on your computer, not through a USB hub. "+
"Also make sure you are only powered via USB "+highlightPrefix+"not battery"+highlightSuffix+"."
readonlypropertystringqgcUnplugText1:qsTr("All %1 connections to vehicles must be ").arg(QGroundControl.appName)+highlightPrefix+" disconnected "+highlightSuffix+"prior to firmware upgrade."
readonlypropertystringqgcUnplugText2:highlightPrefix+"<big>Please unplug your Pixhawk and/or Radio from USB.</big>"+highlightSuffix
propertybool_singleFirmwareMode:QGroundControl.corePlugin.options.firmwareUpgradeSingleURL.length!=0///< true: running in special single firmware download mode
readonlypropertystring_px4FlowLabel:qsTr("Detected PX4 Flow board. You can select from the following firmware:")
readonlypropertystring_pixhawkLabel:qsTr("Detected Pixhawk board. You can select from the following flight stacks:")
readonlypropertystring_singleFirmwareLabel:qsTr("Press Ok to upgrade your vehicle.")
}
functionfirmwareVersionChanged(model){
firmwareVersionWarningLabel.visible=false
updatePX4VersionDisplay()
// All of this bizarre, setting model to null and index to 1 and then to 0 is to work around
// strangeness in the combo box implementation. This sequence of steps correctly changes the combo model
// without generating any warnings and correctly updates the combo text with the new selection.
firmwareVersionCombo.model=null
firmwareVersionCombo.model=model
firmwareVersionCombo.currentIndex=1
firmwareVersionCombo.currentIndex=0
}
}
Rectangle{
height:1
width:ScreenTools.defaultFontPixelWidth*5
color:qgcPal.text
anchors.verticalCenter:_advanced.verticalCenter
}
}
Component.onCompleted:{
if(_defaultFirmwareIsPX4){
px4FlightStack.checked=true
}else{
apmFlightStack.checked=true
}
}
QGCLabel{
width:parent.width
wrapMode:Text.WordWrap
visible:showFirmwareTypeSelection
text:px4Flow?qsTr("Select which version of the firmware you would like to install:"):qsTr("Select which version of the above flight stack you would like to install:")
text:px4Flow?qsTr("Select which version of the firmware you would like to install:"):qsTr("Select which version of the above flight stack you would like to install:")