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
d487e995
Commit
d487e995
authored
Oct 25, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2111 from DonLakeFlyer/FMBind
Fix Flight Mode binding loop
parents
9efdddb2
4069ab9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
FlightModesComponent.qml
src/AutoPilotPlugins/PX4/FlightModesComponent.qml
+6
-6
ModeSwitchDisplay.qml
src/QmlControls/ModeSwitchDisplay.qml
+3
-1
No files found.
src/AutoPilotPlugins/PX4/FlightModesComponent.qml
View file @
d487e995
...
...
@@ -260,7 +260,7 @@ QGCView {
thresholdValue
:
controller
.
manualModeThreshold
thresholdDragEnabled
:
false
onModeChannelIndex
Changed
:
controller
.
manualModeChannelIndex
=
modeChannelI
ndex
onModeChannelIndex
Selected
:
controller
.
manualModeChannelIndex
=
i
ndex
}
ModeSwitchDisplay
{
...
...
@@ -308,7 +308,7 @@ QGCView {
thresholdValue
:
controller
.
acroModeThreshold
thresholdDragEnabled
:
true
onModeChannelIndex
Changed
:
controller
.
acroModeChannelIndex
=
modeChannelI
ndex
onModeChannelIndex
Selected
:
controller
.
acroModeChannelIndex
=
i
ndex
onThresholdValueChanged
:
controller
.
acroModeThreshold
=
thresholdValue
Behavior
on
y
{
PropertyAnimation
{
easing.type
:
Easing
.
InOutQuad
;
duration
:
1000
}
}
...
...
@@ -341,7 +341,7 @@ QGCView {
thresholdValue
:
controller
.
posCtlModeThreshold
thresholdDragEnabled
:
true
onModeChannelIndex
Changed
:
controller
.
posCtlModeChannelIndex
=
modeChannelI
ndex
onModeChannelIndex
Selected
:
controller
.
posCtlModeChannelIndex
=
i
ndex
onThresholdValueChanged
:
controller
.
posCtlModeThreshold
=
thresholdValue
Behavior
on
y
{
PropertyAnimation
{
easing.type
:
Easing
.
InOutQuad
;
duration
:
1000
}
}
...
...
@@ -374,7 +374,7 @@ QGCView {
thresholdValue
:
controller
.
loiterModeThreshold
thresholdDragEnabled
:
true
onModeChannelIndex
Changed
:
controller
.
loiterModeChannelIndex
=
modeChannelI
ndex
onModeChannelIndex
Selected
:
controller
.
loiterModeChannelIndex
=
i
ndex
onThresholdValueChanged
:
controller
.
loiterModeThreshold
=
thresholdValue
Behavior
on
y
{
PropertyAnimation
{
easing.type
:
Easing
.
InOutQuad
;
duration
:
1000
}
}
...
...
@@ -391,7 +391,7 @@ QGCView {
thresholdValue
:
controller
.
returnModeThreshold
thresholdDragEnabled
:
true
onModeChannelIndex
Changed
:
controller
.
returnModeChannelIndex
=
modeChannelI
ndex
onModeChannelIndex
Selected
:
controller
.
returnModeChannelIndex
=
i
ndex
onThresholdValueChanged
:
controller
.
returnModeThreshold
=
thresholdValue
Behavior
on
y
{
PropertyAnimation
{
easing.type
:
Easing
.
InOutQuad
;
duration
:
1000
}
}
...
...
@@ -408,7 +408,7 @@ QGCView {
thresholdValue
:
controller
.
offboardModeThreshold
thresholdDragEnabled
:
true
onModeChannelIndex
Changed
:
controller
.
offboardModeChannelIndex
=
modeChannelI
ndex
onModeChannelIndex
Selected
:
controller
.
offboardModeChannelIndex
=
i
ndex
onThresholdValueChanged
:
controller
.
offboardModeThreshold
=
thresholdValue
Behavior
on
y
{
PropertyAnimation
{
easing.type
:
Easing
.
InOutQuad
;
duration
:
1000
}
}
...
...
src/QmlControls/ModeSwitchDisplay.qml
View file @
d487e995
...
...
@@ -45,6 +45,8 @@ Rectangle {
height
:
column
.
height
+
(
ScreenTools
.
defaultFontPixelWidth
*
2
)
color
:
_qgcPal
.
window
signal
modeChannelIndexSelected
(
int
index
)
QGCPalette
{
id
:
_qgcPal
;
colorGroupEnabled
:
enabled
}
Item
{
...
...
@@ -82,7 +84,7 @@ Rectangle {
currentIndex
:
modeChannelIndex
enabled
:
modeChannelEnabled
onActivated
:
modeChannelIndex
=
index
onActivated
:
modeChannelIndex
Selected
(
index
)
}
QGCLabel
{
...
...
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