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
aeae385a
Unverified
Commit
aeae385a
authored
Jul 03, 2018
by
Don Gagne
Committed by
GitHub
Jul 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6677 from DonLakeFlyer/TerrainPathQuery
Fix: Terrain path query
parents
a27bf5cb
ab2f8c6b
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
49 deletions
+73
-49
TransectStyleComplexItem.cc
src/MissionManager/TransectStyleComplexItem.cc
+1
-1
VisualMissionItem.cc
src/MissionManager/VisualMissionItem.cc
+1
-1
AppMessages.qml
src/QmlControls/AppMessages.qml
+15
-1
TerrainQuery.cc
src/Terrain/TerrainQuery.cc
+48
-39
TerrainQuery.h
src/Terrain/TerrainQuery.h
+8
-7
No files found.
src/MissionManager/TransectStyleComplexItem.cc
View file @
aeae385a
...
...
@@ -412,7 +412,7 @@ void TransectStyleComplexItem::_reallyQueryTransectsPathHeightInfo(void)
if
(
transectPoints
.
count
()
>
1
)
{
_terrainPolyPathQuery
=
new
TerrainPolyPathQuery
(
this
);
connect
(
_terrainPolyPathQuery
,
&
TerrainPolyPathQuery
::
terrainData
,
this
,
&
TransectStyleComplexItem
::
_polyPathTerrainData
);
connect
(
_terrainPolyPathQuery
,
&
TerrainPolyPathQuery
::
terrainData
Received
,
this
,
&
TransectStyleComplexItem
::
_polyPathTerrainData
);
_terrainPolyPathQuery
->
requestData
(
transectPoints
);
}
}
...
...
src/MissionManager/VisualMissionItem.cc
View file @
aeae385a
...
...
@@ -186,7 +186,7 @@ void VisualMissionItem::_reallyUpdateTerrainAltitude(void)
_lastLatTerrainQuery
=
coord
.
latitude
();
_lastLonTerrainQuery
=
coord
.
longitude
();
TerrainAtCoordinateQuery
*
terrain
=
new
TerrainAtCoordinateQuery
(
this
);
connect
(
terrain
,
&
TerrainAtCoordinateQuery
::
terrainData
,
this
,
&
VisualMissionItem
::
_terrainDataReceived
);
connect
(
terrain
,
&
TerrainAtCoordinateQuery
::
terrainData
Received
,
this
,
&
VisualMissionItem
::
_terrainDataReceived
);
QList
<
QGeoCoordinate
>
rgCoord
;
rgCoord
.
append
(
coordinate
());
terrain
->
requestData
(
rgCoord
);
...
...
src/QmlControls/AppMessages.qml
View file @
aeae385a
...
...
@@ -43,8 +43,22 @@ QGCView {
id
:
categoryColumn
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
2
QGCButton
{
text
:
qsTr
(
"
Clear All
"
)
onClicked
:
{
var
logCats
=
QGroundControl
.
loggingCategories
()
for
(
var
i
=
0
;
i
<
logCats
.
length
;
i
++
)
{
QGroundControl
.
setCategoryLoggingOn
(
logCats
[
i
],
false
)
}
QGroundControl
.
updateLoggingFilterRules
()
categoryRepeater
.
model
=
undefined
categoryRepeater
.
model
=
QGroundControl
.
loggingCategories
()
}
}
Repeater
{
model
:
QGroundControl
.
loggingCategories
()
id
:
categoryRepeater
model
:
QGroundControl
.
loggingCategories
()
QGCCheckBox
{
text
:
modelData
...
...
src/Terrain/TerrainQuery.cc
View file @
aeae385a
This diff is collapsed.
Click to expand it.
src/Terrain/TerrainQuery.h
View file @
aeae385a
...
...
@@ -50,9 +50,9 @@ public:
virtual
void
requestCarpetHeights
(
const
QGeoCoordinate
&
swCoord
,
const
QGeoCoordinate
&
neCoord
,
bool
statsOnly
)
=
0
;
signals:
void
coordinateHeights
(
bool
success
,
QList
<
double
>
heights
);
void
pathHeights
(
bool
success
,
double
latStep
,
double
lonStep
,
const
QList
<
double
>&
heights
);
void
carpetHeights
(
bool
success
,
double
minHeight
,
double
maxHeight
,
const
QList
<
QList
<
double
>>&
carpet
);
void
coordinateHeights
Received
(
bool
success
,
QList
<
double
>
heights
);
void
pathHeights
Received
(
bool
success
,
double
latStep
,
double
lonStep
,
const
QList
<
double
>&
heights
);
void
carpetHeights
Received
(
bool
success
,
double
minHeight
,
double
maxHeight
,
const
QList
<
QList
<
double
>>&
carpet
);
};
/// AirMap online implementation of terrain queries
...
...
@@ -136,6 +136,7 @@ private:
typedef
struct
{
TerrainOfflineAirMapQuery
*
terrainQueryInterface
;
QueryMode
queryMode
;
double
latStep
,
lonStep
;
QList
<
QGeoCoordinate
>
coordinates
;
}
QueuedRequestInfo_t
;
...
...
@@ -210,7 +211,7 @@ public:
void
_signalTerrainData
(
bool
success
,
QList
<
double
>&
heights
);
signals:
void
terrainData
(
bool
success
,
QList
<
double
>
heights
);
void
terrainData
Received
(
bool
success
,
QList
<
double
>
heights
);
};
class
TerrainPathQuery
:
public
QObject
...
...
@@ -233,7 +234,7 @@ public:
signals:
/// Signalled when terrain data comes back from server
void
terrainData
(
bool
success
,
const
PathHeightInfo_t
&
pathHeightInfo
);
void
terrainData
Received
(
bool
success
,
const
PathHeightInfo_t
&
pathHeightInfo
);
private
slots
:
void
_pathHeights
(
bool
success
,
double
latStep
,
double
lonStep
,
const
QList
<
double
>&
heights
);
...
...
@@ -259,7 +260,7 @@ public:
signals:
/// Signalled when terrain data comes back from server
void
terrainData
(
bool
success
,
const
QList
<
TerrainPathQuery
::
PathHeightInfo_t
>&
rgPathHeightInfo
);
void
terrainData
Received
(
bool
success
,
const
QList
<
TerrainPathQuery
::
PathHeightInfo_t
>&
rgPathHeightInfo
);
private
slots
:
void
_terrainDataReceived
(
bool
success
,
const
TerrainPathQuery
::
PathHeightInfo_t
&
pathHeightInfo
);
...
...
@@ -288,7 +289,7 @@ public:
signals:
/// Signalled when terrain data comes back from server
void
terrainData
(
bool
success
,
double
minHeight
,
double
maxHeight
,
const
QList
<
QList
<
double
>>&
carpet
);
void
terrainData
Received
(
bool
success
,
double
minHeight
,
double
maxHeight
,
const
QList
<
QList
<
double
>>&
carpet
);
private:
TerrainAirMapQuery
_terrainQuery
;
...
...
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