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
Randy Mackay
7d2c0079ff
Terrain: set HAL capabilities bit
10 years ago
Tim Ryan
d7fe6bfe0d
Terrain: cast grid_spacing to fix OSX clang error
10 years ago
Peter Barker
9e0b5910e2
AP_Terrain: use 64-bit timestamps for dataflash logs
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
af4dee39d8
AP_Terrain: added note on CPU cost of height_amsl()
11 years ago
Andrew Tridgell
dc72dfb70a
AP_Terrain: added terrain lookahead API
...
this allows for predicting altitude needed to climb over upcoming
terrain
11 years ago
Andrew Tridgell
642a07b6bd
AP_Terrain: enable the terrain database by default
...
MissionPlanner now supports terrain data, and having terrain data in
logs is useful even if users don't fly terrain missions
11 years ago
Andrew Tridgell
a701fa2098
AP_Terrain: added automatic rally point checking
11 years ago
Andrew Tridgell
7da939047f
AP_Terrain: added automatic waypoint checking
...
check we have terrain data for all waypoints
11 years ago
Andrew Tridgell
9ca65602c6
AP_Terrain: added dataflash logging
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
bb31a45596
AP_Terrain: expand parameter docs
11 years ago
Andrew Tridgell
c4047f6f11
AP_Terrain: rename find_grid() to find_grid_cache()
...
thanks Randy!
11 years ago
Andrew Tridgell
1fcf35333f
AP_Terrain: fixed init order and init more vars
...
thanks to Randy for spotting this
11 years ago
Andrew Tridgell
3faafc9644
AP_Terrain: replace HAVE_AP_TERRAIN with AP_TERRAIN_AVAILABLE
11 years ago
Andrew Tridgell
7bc6561f2a
AP_Terrain: fixed comment on function
11 years ago
Andrew Tridgell
c32595e6ed
AP_Terrain: added status() interface for reporting
11 years ago
Andrew Tridgell
e2e41d5da7
AP_Terrain: added location_to_relative_home() function
11 years ago
Andrew Tridgell
5e2077185b
AP_Terrain: fixed cm conversion error
11 years ago
Andrew Tridgell
18974363d5
AP_Terrain: added some helper functions
...
this adds easier to use helper functions for terrain handling
11 years ago
Andrew Tridgell
8ea2133c4b
AP_Terrain: provide more height_*() convenience functions
...
these provide functions that are more convenient for the vehicle code
to use
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
Andrew Tridgell
2d9637c156
AP_Terrain: re-arrange disk IO code
...
add some comments explaining split between IO thread and main code
11 years ago
Andrew Tridgell
ee04c7de96
AP_Terrain: hold home location as a special location
...
this ensures home altitude is always available
11 years ago
Andrew Tridgell
0a3aa23619
AP_Terrain: fixed build on APM2
11 years ago
Andrew Tridgell
2f0279659a
AP_Terrain: prevent disk blocks getting stuck
...
we need to match first on the expected state to ensure we don't get an
invalid block
11 years ago
Andrew Tridgell
28d6e39c4c
AP_Terrain: added checking of block CRCs on disk
...
this allows us to cope with SD card data corruption
11 years ago
Andrew Tridgell
eeb4ad56bc
AP_Terrain: added checking and reporting messages
...
this allows the GCS to check the status of the terrain system
11 years ago
Andrew Tridgell
9f76f0276f
AP_Terrain: added disk IO for terrain data
11 years ago
Andrew Tridgell
09214680fe
AP_Terrain: request grids around current grid
...
this ensures we have grids ahead of time
11 years ago
Andrew Tridgell
18e09c2f3e
AP_Terrain: added debug code
11 years ago
Andrew Tridgell
09518d2d91
AP_Terrain: added mavlink transport of terrain data
11 years ago
Andrew Tridgell
1d42eda4da
AP_Terrain: started on update() logic
11 years ago
Andrew Tridgell
a7eb2ac28c
AP_Terrain: implement height_amsl()
11 years ago
Andrew Tridgell
ee7fc984f0
AP_Terrain: initial structure
11 years ago