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
992e6e57
Unverified
Commit
992e6e57
authored
Jun 15, 2020
by
Don Gagne
Committed by
GitHub
Jun 15, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8844 from DonLakeFlyer/TerrainProfileCrash
Fix Terrain profile crash
parents
37d3db3d
fdb53cb4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
115 deletions
+134
-115
SurveyItemEditor.qml
src/PlanView/SurveyItemEditor.qml
+46
-44
TerrainProfile.cc
src/QmlControls/TerrainProfile.cc
+78
-63
TerrainProfile.h
src/QmlControls/TerrainProfile.h
+10
-8
No files found.
src/PlanView/SurveyItemEditor.qml
View file @
992e6e57
This diff is collapsed.
Click to expand it.
src/QmlControls/TerrainProfile.cc
View file @
992e6e57
This diff is collapsed.
Click to expand it.
src/QmlControls/TerrainProfile.h
View file @
992e6e57
...
@@ -57,14 +57,16 @@ private slots:
...
@@ -57,14 +57,16 @@ private slots:
void
_newVisualItems
(
void
);
void
_newVisualItems
(
void
);
private:
private:
void
_createGeometry
(
QSGGeometryNode
*&
geometryNode
,
QSGGeometry
*&
geometry
,
int
vertices
,
QSGGeometry
::
DrawingMode
drawingMode
,
const
QColor
&
color
);
void
_createGeometry
(
QSGGeometryNode
*&
geometryNode
,
QSGGeometry
*&
geometry
,
QSGGeometry
::
DrawingMode
drawingMode
,
const
QColor
&
color
);
void
_updateSegmentCounts
(
FlightPathSegment
*
segment
,
int
&
cTerrainPoints
,
int
&
cMissingTerrainSegments
,
int
&
cTerrainCollisionSegments
,
double
&
maxTerrainHeight
);
void
_updateSegmentCounts
(
FlightPathSegment
*
segment
,
int
&
cFlightProfileSegments
,
int
&
cTerrainPoints
,
int
&
cMissingTerrainSegments
,
int
&
cTerrainCollisionSegments
,
double
&
maxTerrainHeight
);
void
_addTerrainProfileSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
terrainVertices
,
int
&
terrainVertexIndex
);
void
_addTerrainProfileSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
terrainProfileVertices
,
int
&
terrainVertexIndex
);
void
_addMissingTerrainSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
QSGGeometry
::
Point2D
*
missingTerrainVertices
,
int
&
missingTerrainVertexIndex
);
void
_addMissingTerrainSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
QSGGeometry
::
Point2D
*
missingTerrainVertices
,
int
&
missingTerrainVertexIndex
);
void
_addTerrainCollisionSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
terrainCollisionVertices
,
int
&
terrainCollisionVertexIndex
);
void
_addTerrainCollisionSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
terrainCollisionVertices
,
int
&
terrainCollisionVertexIndex
);
void
_addFlightProfileSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
flightProfileVertices
,
int
&
flightProfileVertexIndex
);
void
_addFlightProfileSegment
(
FlightPathSegment
*
segment
,
double
currentDistance
,
double
amslAltRange
,
QSGGeometry
::
Point2D
*
flightProfileVertices
,
int
&
flightProfileVertexIndex
);
double
_availableHeight
(
void
)
const
;
double
_availableHeight
(
void
)
const
;
void
_setVertex
(
QSGGeometry
::
Point2D
&
vertex
,
double
x
,
double
y
);
void
_setVertex
(
QSGGeometry
::
Point2D
&
vertex
,
double
x
,
double
y
);
bool
_shouldAddFlightProfileSegment
(
FlightPathSegment
*
segment
);
bool
_shouldAddMissingTerrainSegment
(
FlightPathSegment
*
segment
);
MissionController
*
_missionController
=
nullptr
;
MissionController
*
_missionController
=
nullptr
;
QmlObjectListModel
*
_visualItems
=
nullptr
;
QmlObjectListModel
*
_visualItems
=
nullptr
;
...
...
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