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
549d095c
Commit
549d095c
authored
Mar 04, 2017
by
Don Gagne
Committed by
GitHub
Mar 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4704 from DonLakeFlyer/SmallFixes
Number of small bug fixes
parents
25ca15d1
f84a4b9f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
9 deletions
+16
-9
FlightDisplayViewMap.qml
src/FlightDisplay/FlightDisplayViewMap.qml
+1
-1
MissionEditor.qml
src/MissionEditor/MissionEditor.qml
+1
-2
SurveyItemEditor.qml
src/MissionEditor/SurveyItemEditor.qml
+6
-0
MissionCommandTree.cc
src/MissionManager/MissionCommandTree.cc
+3
-1
MissionCommandTree.h
src/MissionManager/MissionCommandTree.h
+5
-5
No files found.
src/FlightDisplay/FlightDisplayViewMap.qml
View file @
549d095c
...
...
@@ -87,7 +87,7 @@ FlightMap {
buttonVisible
:
[
true
,
true
,
_showZoom
,
_showZoom
]
maxHeight
:
(
_flightVideo
.
visible
?
_flightVideo
.
y
:
parent
.
height
)
-
toolStrip
.
y
// Massive reach across hack
property
bool
_showZoom
:
!
ScreenTools
.
is
ShortScreen
property
bool
_showZoom
:
!
ScreenTools
.
is
Mobile
model
:
[
{
...
...
src/MissionEditor/MissionEditor.qml
View file @
549d095c
...
...
@@ -250,7 +250,6 @@ QGCView {
function
setCurrentItem
(
sequenceNumber
)
{
if
(
sequenceNumber
!==
_currentMissionIndex
)
{
console
.
log
(
"
setCurrentItem
"
,
sequenceNumber
)
_currentMissionItem
=
undefined
_currentMissionIndex
=
-
1
for
(
var
i
=
0
;
i
<
_visualItems
.
count
;
i
++
)
{
...
...
@@ -712,7 +711,7 @@ QGCView {
buttonVisible
:
[
true
,
true
,
true
,
true
,
true
,
_showZoom
,
_showZoom
]
maxHeight
:
mapScale
.
y
-
toolStrip
.
y
property
bool
_showZoom
:
!
ScreenTools
.
is
ShortScreen
property
bool
_showZoom
:
!
ScreenTools
.
is
Mobile
model
:
[
{
...
...
src/MissionEditor/SurveyItemEditor.qml
View file @
549d095c
...
...
@@ -214,6 +214,12 @@ Rectangle {
recalcFromCameraValues
()
}
}
onIsCurrentItemChanged
:
{
if
(
!
missionItem
.
isCurrentItem
)
{
polygonEditor
.
cancelPolygonEdit
()
}
}
}
Connections
{
...
...
src/MissionManager/MissionCommandTree.cc
View file @
549d095c
...
...
@@ -23,6 +23,7 @@
MissionCommandTree
::
MissionCommandTree
(
QGCApplication
*
app
,
bool
unitTest
)
:
QGCTool
(
app
)
,
_allCommandsCategory
(
tr
(
"All commands"
))
,
_settingsManager
(
NULL
)
,
_unitTest
(
unitTest
)
{
...
...
@@ -168,6 +169,7 @@ void MissionCommandTree::_buildAvailableCommands(Vehicle* vehicle)
_availableCategories
[
baseFirmwareType
][
baseVehicleType
].
append
(
newCategory
);
}
}
_availableCategories
[
baseFirmwareType
][
baseVehicleType
].
append
(
_allCommandsCategory
);
}
QStringList
MissionCommandTree
::
_availableCategoriesForVehicle
(
Vehicle
*
vehicle
)
...
...
@@ -238,7 +240,7 @@ QVariantList MissionCommandTree::getCommandsForCategory(Vehicle* vehicle, const
QMap
<
MAV_CMD
,
MissionCommandUIInfo
*>
commandMap
=
_availableCommands
[
baseFirmwareType
][
baseVehicleType
];
foreach
(
MAV_CMD
command
,
commandMap
.
keys
())
{
MissionCommandUIInfo
*
uiInfo
=
commandMap
[
command
];
if
(
uiInfo
->
category
()
==
category
)
{
if
(
uiInfo
->
category
()
==
category
||
category
==
_allCommandsCategory
)
{
list
.
append
(
QVariant
::
fromValue
(
uiInfo
));
}
}
...
...
src/MissionManager/MissionCommandTree.h
View file @
549d095c
...
...
@@ -76,11 +76,13 @@ private:
void
_baseVehicleInfo
(
Vehicle
*
vehicle
,
MAV_AUTOPILOT
&
baseFirmwareType
,
MAV_TYPE
&
baseVehicleType
)
const
;
private:
/// List of all known command ids (not vehicle specific)
QList
<
int
>
_allCommandIds
;
QString
_allCommandsCategory
;
///< Category which contains all available commands
QList
<
int
>
_allCommandIds
;
///< List of all known command ids (not vehicle specific)
SettingsManager
*
_settingsManager
;
bool
_unitTest
;
///< true: running in unit test mode
/// Full hierarchy
QMap
<
MAV_AUTOPILOT
,
QMap
<
MAV_TYPE
,
MissionCommandList
*>>
_staticCommandTree
;
QMap
<
MAV_AUTOPILOT
,
QMap
<
MAV_TYPE
,
MissionCommandList
*>>
_staticCommandTree
;
/// Collapsed hierarchy for specific vehicle type
QMap
<
MAV_AUTOPILOT
,
QMap
<
MAV_TYPE
,
QMap
<
MAV_CMD
,
MissionCommandUIInfo
*>>>
_availableCommands
;
...
...
@@ -88,8 +90,6 @@ private:
/// Collapsed hierarchy for specific vehicle type
QMap
<
MAV_AUTOPILOT
,
QMap
<
MAV_TYPE
,
QStringList
>>
_availableCategories
;
SettingsManager
*
_settingsManager
;
bool
_unitTest
;
///< true: running in unit test mode
#ifdef UNITTEST_BUILD
friend
class
MissionCommandTreeTest
;
...
...
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