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
6b6aa978
Commit
6b6aa978
authored
Oct 01, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
b71715ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
APMAirframeComponent.qml
src/AutoPilotPlugins/APM/APMAirframeComponent.qml
+8
-4
No files found.
src/AutoPilotPlugins/APM/APMAirframeComponent.qml
View file @
6b6aa978
...
...
@@ -178,8 +178,12 @@ SetupPage {
property
bool
valid
:
true
function
selectFrameType
(
frameType
)
{
var
index
=
object
.
frameTypeEnumValues
.
findIndex
(
v
=>
v
==
frameType
)
function
checkFrameType
(
value
)
{
return
value
==
_frameType
.
rawValue
}
function
selectFrameType
()
{
var
index
=
object
.
frameTypeEnumValues
.
findIndex
(
checkFrameType
)
if
(
index
==
-
1
&&
combo
.
visible
)
{
// Frame Class/Type is set to an invalid combination
combo
.
valid
=
false
...
...
@@ -189,12 +193,12 @@ SetupPage {
}
}
Component.onCompleted
:
selectFrameType
(
_frameType
.
rawValue
)
Component.onCompleted
:
selectFrameType
()
Connections
{
target
:
_frameTypeAvailable
?
_frameType
:
null
ignoreUnknownSignals
:
true
onRawValueChanged
:
combo
.
selectFrameType
(
value
)
onRawValueChanged
:
combo
.
selectFrameType
()
}
}
}
...
...
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