Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
06d6c939
Commit
06d6c939
authored
May 20, 2018
by
DonLakeFlyer
Browse files
Use FW Landing visuals in Fly
parent
65ebabe4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/MissionManager/MissionController.cc
View file @
06d6c939
...
...
@@ -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 @
06d6c939
...
...
@@ -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 @
06d6c939
...
...
@@ -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
Supports
Markdown
0%
Try again
or
attach a new 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