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
8f8617f0
Commit
8f8617f0
authored
Jul 18, 2015
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1720 from DonLakeFlyer/FMUsedChannels
Flight Mode Config: Show text on already used channels
parents
d2bea7a8
8655b608
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
FlightModesComponent.qml
src/AutoPilotPlugins/PX4/FlightModesComponent.qml
+4
-2
FlightModesComponentController.cc
src/AutoPilotPlugins/PX4/FlightModesComponentController.cc
+11
-0
FlightModesComponentController.h
src/AutoPilotPlugins/PX4/FlightModesComponentController.h
+3
-0
No files found.
src/AutoPilotPlugins/PX4/FlightModesComponent.qml
View file @
8f8617f0
...
...
@@ -42,9 +42,11 @@ QGCView {
// User visible strings
readonly
property
string
topHelpText
:
"
Assign Flight Modes to radio control channels and adjust the thresholds for triggering them.
"
+
property
string
topHelpText
:
"
Assign Flight Modes to radio control channels and adjust the thresholds for triggering them.
"
+
"
You can assign multiple flight modes to a single channel.
"
+
"
Turn your radio control on to test switch settings.
"
"
Turn your radio control on to test switch settings.
"
+
"
The following channels:
"
+
controller
.
reservedChannels
+
"
are not available for Flight Modes since they are already in use for other functions.
"
readonly
property
string
fwManualModeName
:
"
Manual/Main
"
...
...
src/AutoPilotPlugins/PX4/FlightModesComponentController.cc
View file @
8f8617f0
...
...
@@ -141,6 +141,17 @@ void FlightModesComponentController::_init(void)
}
}
// Setup reserved channels string for ui
bool
first
=
true
;
foreach
(
int
usedChannel
,
usedChannels
)
{
if
(
!
first
)
{
_reservedChannels
+=
", "
;
}
_reservedChannels
+=
QString
(
"%1"
).
arg
(
usedChannel
);
first
=
false
;
}
_recalcModeRows
();
}
...
...
src/AutoPilotPlugins/PX4/FlightModesComponentController.h
View file @
8f8617f0
...
...
@@ -51,6 +51,8 @@ public:
Q_PROPERTY
(
int
channelCount
MEMBER
_channelCount
CONSTANT
)
Q_PROPERTY
(
bool
fixedWing
MEMBER
_fixedWing
CONSTANT
)
Q_PROPERTY
(
QString
reservedChannels
MEMBER
_reservedChannels
CONSTANT
)
Q_PROPERTY
(
int
assistModeRow
MEMBER
_assistModeRow
NOTIFY
modeRowsChanged
)
Q_PROPERTY
(
int
autoModeRow
MEMBER
_autoModeRow
NOTIFY
modeRowsChanged
)
Q_PROPERTY
(
int
acroModeRow
MEMBER
_acroModeRow
NOTIFY
modeRowsChanged
)
...
...
@@ -214,6 +216,7 @@ private:
bool
_validConfiguration
;
QString
_configurationErrors
;
int
_channelCount
;
QString
_reservedChannels
;
int
_assistModeRow
;
int
_autoModeRow
;
...
...
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