Pierre Kancir
82de3efc09
AP_Terrain: pass mavlink_message_t by const reference
6 years ago
Peter Barker
9f33fb6085
AP_Terrain: add missing AP_AHRS include
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
6082b230e8
AP_Terrain: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
Peter Barker
90b708f9e7
AP_Terrain: adjust for location flags being moved out of union
6 years ago
Peter Barker
1a853f6f82
AP_Terrain: use ahrs singleton
6 years ago
Michael du Breuil
4299eb9ba8
AP_Terrain: Reduce memory consumption, simplify enable checking
7 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Matthew Brener
06388b0417
Global: Fix typos
9 years ago
Andrew Tridgell
40d1a23a13
AP_Terrain: use HAVE_PAYLOAD_SPACE()
9 years ago
Randy Mackay
d84321be2e
AP_Terrain: height_amsl can correct for non-zero terrain alt at home position
9 years ago
Caio Marcelo de Oliveira Filho
0aa520a273
AP_Terrain: use millis/micros/panic functions
9 years ago
Andrew Tridgell
0d26252bdb
AP_Terrain: don't allocate cache array when terrain not enabled
...
this makes it easy to save 22k of ram when running other experiments
10 years ago
Gustavo Jose de Sousa
fcd1d4938a
AP_Terrain: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
c7044c4f91
AP_Terrain: make terrain request times per channel
...
otherwise we can miss sending one if we send first to a channel not
being listened to
10 years ago
Andrew Tridgell
7da939047f
AP_Terrain: added automatic waypoint checking
...
check we have terrain data for all waypoints
11 years ago
Andrew Tridgell
147a7b8b69
AP_Terrain: added extrapolation based on last available data
...
if we run out of terrain data then extrapolate using the last
available terrain height at the AHRS position. This can be used to
cope with GCS outages over long distances where the terrain data isn't
preloaded
11 years ago
Andrew Tridgell
37b357f282
AP_Terrain: prevent valgrind error when terrain not available
11 years ago
Andrew Tridgell
ab9785d3ad
AP_Terrain: added current_height to TERRAIN_REPORT
...
and send TERRAIN_REPORT even when downloading TERRAIN_DATA
11 years ago
Andrew Tridgell
c4047f6f11
AP_Terrain: rename find_grid() to find_grid_cache()
...
thanks Randy!
11 years ago
Andrew Tridgell
3faafc9644
AP_Terrain: replace HAVE_AP_TERRAIN with AP_TERRAIN_AVAILABLE
11 years ago
Andrew Tridgell
ce60bf8d3f
AP_Terrain: removed incorrect ASSERT
11 years ago
Andrew Tridgell
db506b76fa
AP_Terrain: split up code into separate cpp files
...
this should make it a bit easier to review
11 years ago