Browse Source

Show detailed instructions on flash fail

QGC4.4
Don Gagne 9 years ago
parent
commit
12afb9f60f
  1. 6
      src/VehicleSetup/FirmwareUpgrade.qml

6
src/VehicleSetup/FirmwareUpgrade.qml

@ -43,8 +43,9 @@ QGCView { @@ -43,8 +43,9 @@ QGCView {
readonly property string highlightPrefix: "<font color=\"" + qgcPal.warningText + "\">"
readonly property string highlightSuffix: "</font>"
readonly property string welcomeText: "QGroundControl can upgrade the firmware on Pixhawk devices, 3DR Radios and PX4 Flow Smart Cameras."
readonly property string plugInText: highlightPrefix + "Plug in your device" + highlightSuffix + " via USB to " + highlightPrefix + "start" + highlightSuffix + " firmware upgrade. " +
"Make sure to connect " + highlightPrefix + "directly" + highlightSuffix + " to a powered USB port on your computer, not through a USB hub."
readonly property string plugInText: highlightPrefix + "Plug in your device" + highlightSuffix + " via USB to " + highlightPrefix + "start" + highlightSuffix + " firmware upgrade. "
readonly property string flashFailText: "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 + "."
readonly property string qgcDisconnectText: "All QGroundControl connections to vehicles must be disconnected prior to firmware upgrade."
property string usbUnplugText: "Device must be disconnected from USB to start firmware upgrade. " +
highlightPrefix + "Disconnect {0}" + highlightSuffix + " from usb."
@ -117,6 +118,7 @@ QGCView { @@ -117,6 +118,7 @@ QGCView {
onError: {
hideDialog()
statusTextArea.append(flashFailText)
flashCompleteWaitTimer.running = true
}

Loading…
Cancel
Save