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
c6c32ba6
Commit
c6c32ba6
authored
Nov 13, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
12c58934
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
28 deletions
+25
-28
PX4SimpleFlightModes.qml
src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml
+25
-28
No files found.
src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml
View file @
c6c32ba6
...
...
@@ -81,52 +81,49 @@ Item {
height
:
flightModeColumn
.
height
+
ScreenTools
.
defaultFontPixelHeight
color
:
qgcPal
.
windowShade
Column
Layout
{
Grid
Layout
{
id
:
flightModeColumn
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelHeight
rows
:
7
rowSpacing
:
ScreenTools
.
defaultFontPixelWidth
/
2
columnSpacing
:
rowSpacing
flow
:
GridLayout
.
TopToBottom
RowLayout
{
QGCLabel
{
Layout.fillWidth
:
true
spacing
:
_margins
text
:
qsTr
(
"
Mode Channel
"
)
}
Repeater
{
model
:
6
QGCLabel
{
Layout.fillWidth
:
true
text
:
qsTr
(
"
Mode channel:
"
)
text
:
qsTr
(
"
Flight Mode %1
"
).
arg
(
modelData
+
1
)
color
:
controller
.
activeFlightMode
==
index
?
"
yellow
"
:
qgcPal
.
text
}
}
FactComboBox
{
Layout.preferredWidth
:
_channelComboWidth
fact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_FLTMODE
"
)
indexModel
:
false
}
FactComboBox
{
Layout.fillWidth
:
true
fact
:
controller
.
getParameterFact
(
-
1
,
"
RC_MAP_FLTMODE
"
)
indexModel
:
false
sizeToContents
:
true
}
Repeater
{
model
:
6
RowLayout
{
FactComboBox
{
Layout.fillWidth
:
true
spacing
:
ScreenTools
.
defaultFontPixelWidth
property
int
index
:
modelData
+
1
QGCLabel
{
Layout.fillWidth
:
true
text
:
qsTr
(
"
Flight Mode %1
"
).
arg
(
index
)
color
:
controller
.
activeFlightMode
==
index
?
"
yellow
"
:
qgcPal
.
text
}
FactComboBox
{
Layout.preferredWidth
:
_channelComboWidth
fact
:
controller
.
getParameterFact
(
-
1
,
"
COM_FLTMODE
"
+
index
)
indexModel
:
false
}
fact
:
controller
.
getParameterFact
(
-
1
,
"
COM_FLTMODE
"
+
(
modelData
+
1
))
indexModel
:
false
sizeToContents
:
true
}
}
// Repeater - Flight Modes
}
// Column - Flight Modes
}
}
}
// Rectangle - Flight Modes
}
// Column - Flight mode settings
...
...
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