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
a376e14f
Unverified
Commit
a376e14f
authored
May 20, 2018
by
Don Gagne
Committed by
GitHub
May 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6473 from DonLakeFlyer/FWLandingFly
Use FW Landing visuals in Fly View
parents
65ebabe4
06d6c939
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
MissionController.cc
src/MissionManager/MissionController.cc
+2
-4
VisualMissionItem.h
src/MissionManager/VisualMissionItem.h
+2
-0
FWLandingPatternMapVisual.qml
src/PlanView/FWLandingPatternMapVisual.qml
+8
-2
No files found.
src/MissionManager/MissionController.cc
View file @
a376e14f
...
...
@@ -1825,10 +1825,8 @@ void MissionController::setDirty(bool dirty)
void
MissionController
::
_scanForAdditionalSettings
(
QmlObjectListModel
*
visualItems
,
Vehicle
*
vehicle
)
{
if
(
!
_flyView
)
{
// First we look for a Fixed Wing Landing Pattern which is at the end
FixedWingLandingComplexItem
::
scanForItem
(
visualItems
,
_flyView
,
vehicle
);
}
// First we look for a Fixed Wing Landing Pattern which is at the end
FixedWingLandingComplexItem
::
scanForItem
(
visualItems
,
_flyView
,
vehicle
);
int
scanIndex
=
0
;
while
(
scanIndex
<
visualItems
->
count
())
{
...
...
src/MissionManager/VisualMissionItem.h
View file @
a376e14f
...
...
@@ -66,6 +66,7 @@ public:
Q_PROPERTY
(
double
specifiedGimbalPitch
READ
specifiedGimbalPitch
NOTIFY
specifiedGimbalPitchChanged
)
///< Gimbal pitch, NaN for not specified
Q_PROPERTY
(
double
missionGimbalYaw
READ
missionGimbalYaw
NOTIFY
missionGimbalYawChanged
)
///< Current gimbal yaw state at this point in mission
Q_PROPERTY
(
double
missionVehicleYaw
READ
missionVehicleYaw
NOTIFY
missionVehicleYawChanged
)
///< Expected vehicle yaw at this point in mission
Q_PROPERTY
(
bool
flyView
READ
flyView
CONSTANT
)
// The following properties are calculated/set by the MissionController recalc methods
...
...
@@ -87,6 +88,7 @@ public:
double
distance
(
void
)
const
{
return
_distance
;
}
bool
isCurrentItem
(
void
)
const
{
return
_isCurrentItem
;
}
double
terrainAltitude
(
void
)
const
{
return
_terrainAltitude
;
}
bool
flyView
(
void
)
const
{
return
_flyView
;
}
QmlObjectListModel
*
childItems
(
void
)
{
return
&
_childItems
;
}
...
...
src/PlanView/FWLandingPatternMapVisual.qml
View file @
a376e14f
...
...
@@ -97,11 +97,11 @@ Item {
Component.onCompleted
:
{
if
(
_missionItem
.
landingCoordSet
)
{
showItemVisuals
()
if
(
_missionItem
.
isCurrentItem
)
{
if
(
!
_missionItem
.
flyView
&&
_missionItem
.
isCurrentItem
)
{
showDragAreas
()
}
_setFlightPath
()
}
else
if
(
_missionItem
.
isCurrentItem
)
{
}
else
if
(
!
_missionItem
.
flyView
&&
_missionItem
.
isCurrentItem
)
{
showMouseArea
()
}
}
...
...
@@ -116,6 +116,9 @@ Item {
target
:
_missionItem
onIsCurrentItemChanged
:
{
if
(
_missionItem
.
flyView
)
{
return
}
if
(
_missionItem
.
isCurrentItem
)
{
if
(
_missionItem
.
landingCoordSet
)
{
showDragAreas
()
...
...
@@ -129,6 +132,9 @@ Item {
}
onLandingCoordSetChanged
:
{
if
(
_missionItem
.
flyView
)
{
return
}
if
(
_missionItem
.
landingCoordSet
)
{
hideMouseArea
()
showItemVisuals
()
...
...
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