Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
fc652cbc
Commit
fc652cbc
authored
Nov 29, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Firmware Upgrade to new inactive disconnect model
parent
ca6eccda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
FirmwareUpgrade.qml
src/VehicleSetup/FirmwareUpgrade.qml
+15
-3
SetupView.qml
src/VehicleSetup/SetupView.qml
+1
-1
No files found.
src/VehicleSetup/FirmwareUpgrade.qml
View file @
fc652cbc
...
...
@@ -67,6 +67,8 @@ QGCView {
progressBar
:
progressBar
statusLog
:
statusTextArea
property
var
activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
Component.onCompleted
:
{
controllerCompleted
=
true
if
(
qgcView
.
completedSignalled
)
{
...
...
@@ -75,20 +77,30 @@ QGCView {
}
}
onActiveVehicleChanged
:
{
if
(
!
activeVehicle
)
{
statusTextArea
.
append
(
plugInText
)
}
}
onNoBoardFound
:
{
initialBoardSearch
=
false
statusTextArea
.
append
(
plugInText
)
if
(
!
QGroundControl
.
multiVehicleManager
.
activeVehicleAvailable
)
{
statusTextArea
.
append
(
plugInText
)
}
}
onBoardGone
:
{
initialBoardSearch
=
false
statusTextArea
.
append
(
plugInText
)
if
(
!
QGroundControl
.
multiVehicleManager
.
activeVehicleAvailable
)
{
statusTextArea
.
append
(
plugInText
)
}
}
onBoardFound
:
{
if
(
initialBoardSearch
)
{
// Board was found right away, so something is already plugged in before we've started upgrade
if
(
QGroundControl
.
linkManager
.
anyActiveLinks
)
{
if
(
QGroundControl
.
multiVehicleManager
.
activeVehicleAvailable
)
{
statusTextArea
.
append
(
qgcDisconnectText
)
}
else
{
statusTextArea
.
append
(
usbUnplugText
.
replace
(
'
{0}
'
,
controller
.
boardType
))
...
...
src/VehicleSetup/SetupView.qml
View file @
fc652cbc
...
...
@@ -159,7 +159,7 @@ Rectangle {
horizontalAlignment
:
Text
.
AlignHCenter
wrapMode
:
Text
.
WordWrap
font.pixelSize
:
ScreenTools
.
largeFontPixelSize
text
:
"
Connect vehicle to your device and QGroundControl will automatically
conn
ect to it. Click Firmware on the left to upgrade your vehicle.
"
text
:
"
Connect vehicle to your device and QGroundControl will automatically
det
ect to it. Click Firmware on the left to upgrade your vehicle.
"
onLinkActivated
:
Qt
.
openUrlExternally
(
link
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment