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
0ec73ab9
Unverified
Commit
0ec73ab9
authored
6 years ago
by
Don Gagne
Committed by
GitHub
6 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6392 from DonLakeFlyer/SettingsItemBug
Don't allow user to add settings item command
parents
8962f261
0f1a7e02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
MissionCommandTree.cc
src/MissionManager/MissionCommandTree.cc
+5
-0
No files found.
src/MissionManager/MissionCommandTree.cc
View file @
0ec73ab9
...
@@ -239,6 +239,11 @@ QVariantList MissionCommandTree::getCommandsForCategory(Vehicle* vehicle, const
...
@@ -239,6 +239,11 @@ QVariantList MissionCommandTree::getCommandsForCategory(Vehicle* vehicle, const
QVariantList
list
;
QVariantList
list
;
QMap
<
MAV_CMD
,
MissionCommandUIInfo
*>
commandMap
=
_availableCommands
[
baseFirmwareType
][
baseVehicleType
];
QMap
<
MAV_CMD
,
MissionCommandUIInfo
*>
commandMap
=
_availableCommands
[
baseFirmwareType
][
baseVehicleType
];
foreach
(
MAV_CMD
command
,
commandMap
.
keys
())
{
foreach
(
MAV_CMD
command
,
commandMap
.
keys
())
{
if
(
command
==
MAV_CMD_NAV_LAST
)
{
// MAV_CMD_NAV_LAST is used for Mission Settings item. Although we want to be able to get command info for it.
// The user should not be able to use it as a command.
continue
;
}
MissionCommandUIInfo
*
uiInfo
=
commandMap
[
command
];
MissionCommandUIInfo
*
uiInfo
=
commandMap
[
command
];
if
(
uiInfo
->
category
()
==
category
||
category
==
_allCommandsCategory
)
{
if
(
uiInfo
->
category
()
==
category
||
category
==
_allCommandsCategory
)
{
list
.
append
(
QVariant
::
fromValue
(
uiInfo
));
list
.
append
(
QVariant
::
fromValue
(
uiInfo
));
...
...
This diff is collapsed.
Click to expand it.
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