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
9b71c8fe
Commit
9b71c8fe
authored
Mar 22, 2018
by
Andreas Bircher
Browse files
Switch over to offline cachable queries for coordinate and path
parent
6c96642c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Terrain/TerrainQuery.h
View file @
9b71c8fe
...
...
@@ -188,7 +188,7 @@ private:
State
_state
=
State
::
Idle
;
const
int
_batchTimeout
=
500
;
QTimer
_batchTimer
;
TerrainAirMapQuery
_terrainQuery
;
Terrain
Offline
AirMapQuery
_terrainQuery
;
};
/// NOTE: TerrainAtCoordinateQuery is not thread safe. All instances/calls to ElevationProvider must be on main thread.
...
...
@@ -236,7 +236,7 @@ private slots:
void
_pathHeights
(
bool
success
,
double
latStep
,
double
lonStep
,
const
QList
<
double
>&
heights
);
private:
TerrainAirMapQuery
_terrainQuery
;
Terrain
Offline
AirMapQuery
_terrainQuery
;
};
Q_DECLARE_METATYPE
(
TerrainPathQuery
::
PathHeightInfo_t
)
...
...
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