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
d1940918
Commit
d1940918
authored
Sep 08, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
a233646f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
TransectStyleComplexItem.cc
src/MissionManager/TransectStyleComplexItem.cc
+10
-0
TransectStyleComplexItem.h
src/MissionManager/TransectStyleComplexItem.h
+1
-0
No files found.
src/MissionManager/TransectStyleComplexItem.cc
View file @
d1940918
...
...
@@ -102,6 +102,8 @@ TransectStyleComplexItem::TransectStyleComplexItem(Vehicle* vehicle, bool flyVie
connect
(
&
_cameraCalc
,
&
CameraCalc
::
distanceToSurfaceRelativeChanged
,
this
,
&
TransectStyleComplexItem
::
coordinateHasRelativeAltitudeChanged
);
connect
(
&
_cameraCalc
,
&
CameraCalc
::
distanceToSurfaceRelativeChanged
,
this
,
&
TransectStyleComplexItem
::
exitCoordinateHasRelativeAltitudeChanged
);
connect
(
&
_hoverAndCaptureFact
,
&
Fact
::
rawValueChanged
,
this
,
&
TransectStyleComplexItem
::
_handleHoverAndCaptureEnabled
);
connect
(
this
,
&
TransectStyleComplexItem
::
visualTransectPointsChanged
,
this
,
&
TransectStyleComplexItem
::
complexDistanceChanged
);
connect
(
this
,
&
TransectStyleComplexItem
::
visualTransectPointsChanged
,
this
,
&
TransectStyleComplexItem
::
greatestDistanceToChanged
);
...
...
@@ -769,3 +771,11 @@ void TransectStyleComplexItem::_followTerrainChanged(bool followTerrain)
_hoverAndCaptureFact
.
setRawValue
(
false
);
}
}
void
TransectStyleComplexItem
::
_handleHoverAndCaptureEnabled
(
QVariant
enabled
)
{
if
(
enabled
.
toBool
()
&&
_cameraTriggerInTurnAroundFact
.
rawValue
().
toBool
())
{
qDebug
()
<<
"_handleHoverAndCaptureEnabled"
;
_cameraTriggerInTurnAroundFact
.
setRawValue
(
false
);
}
}
src/MissionManager/TransectStyleComplexItem.h
View file @
d1940918
...
...
@@ -205,6 +205,7 @@ protected:
private
slots
:
void
_reallyQueryTransectsPathHeightInfo
(
void
);
void
_followTerrainChanged
(
bool
followTerrain
);
void
_handleHoverAndCaptureEnabled
(
QVariant
enabled
);
private:
void
_queryTransectsPathHeightInfo
(
void
);
...
...
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