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
ae58e709
Commit
ae58e709
authored
Feb 29, 2020
by
Jacob Dahl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated from reviewer feedback
parent
52d8a552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
38 deletions
+17
-38
PreFlightCheckList.qml
src/FlightDisplay/PreFlightCheckList.qml
+17
-38
No files found.
src/FlightDisplay/PreFlightCheckList.qml
View file @
ae58e709
...
...
@@ -23,9 +23,7 @@ Rectangle {
color
:
qgcPal
.
windowShade
radius
:
3
property
real
_verticalMargin
:
ScreenTools
.
defaultFontPixelHeight
/
2
property
var
_offlineEditingVehicleType
:
QGroundControl
.
settingsManager
.
appSettings
.
offlineEditingVehicleType
property
real
_verticalMargin
:
ScreenTools
.
defaultFontPixelHeight
/
2
Loader
{
id
:
modelContainer
...
...
@@ -68,44 +66,25 @@ Rectangle {
//-- Pick a checklist model that matches the current airframe type (if any)
function
_updateModel
()
{
if
(
activeVehicle
)
{
if
(
activeVehicle
.
multiRotor
)
{
modelContainer
.
source
=
"
/checklists/MultiRotorChecklist.qml
"
}
else
if
(
activeVehicle
.
vtol
)
{
modelContainer
.
source
=
"
/checklists/VTOLChecklist.qml
"
}
else
if
(
activeVehicle
.
rover
)
{
modelContainer
.
source
=
"
/checklists/RoverChecklist.qml
"
}
else
if
(
activeVehicle
.
sub
)
{
modelContainer
.
source
=
"
/checklists/SubChecklist.qml
"
}
else
if
(
activeVehicle
.
fixedWing
)
{
modelContainer
.
source
=
"
/checklists/FixedWingChecklist.qml
"
}
else
{
modelContainer
.
source
=
"
/checklists/DefaultChecklist.qml
"
}
return
var
vehicle
=
activeVehicle
if
(
!
vehicle
)
{
vehicle
=
QGroundControl
.
multiVehicleManager
.
offlineEditingVehicle
}
// "enumStrings": "Fixed Wing,Multi-Rotor,VTOL,Rover,Sub",
// "enumValues": "1,2,20,10,12",
switch
(
_offlineEditingVehicleType
.
rawValue
)
{
case
1
:
modelContainer
.
source
=
"
/checklists/FixedWingChecklist.qml
"
return
case
2
:
modelContainer
.
source
=
"
/checklists/MultiRotorChecklist.qml
"
return
case
20
:
modelContainer
.
source
=
"
/checklists/VTOLChecklist.qml
"
return
case
10
:
modelContainer
.
source
=
"
/checklists/RoverChecklist.qml
"
return
case
12
:
modelContainer
.
source
=
"
/checklists/SubChecklist.qml
"
return
if
(
vehicle
.
multiRotor
)
{
modelContainer
.
source
=
"
/checklists/MultiRotorChecklist.qml
"
}
else
if
(
vehicle
.
vtol
)
{
modelContainer
.
source
=
"
/checklists/VTOLChecklist.qml
"
}
else
if
(
vehicle
.
rover
)
{
modelContainer
.
source
=
"
/checklists/RoverChecklist.qml
"
}
else
if
(
vehicle
.
sub
)
{
modelContainer
.
source
=
"
/checklists/SubChecklist.qml
"
}
else
if
(
vehicle
.
fixedWing
)
{
modelContainer
.
source
=
"
/checklists/FixedWingChecklist.qml
"
}
else
{
modelContainer
.
source
=
"
/checklists/DefaultChecklist.qml
"
}
modelContainer
.
source
=
"
/checklists/DefaultChecklist.qml
"
return
}
Component.onCompleted
:
{
...
...
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