ardupilot/libraries/AP_Terrain
Peter Barker 541cfa022b AP_Terrain: fix bad prearms-pass-when-they-shouldn't issue
The squares surrounding the current location were only checked when we went to send a terrain request.  This means it was possible that:
 - the number of pending requests could go to zero
 - prearm checks would pass
 - vehicle arm is attempted by the user (or a script, or ....)
 - the code would call AP_Terrain::send_requests which would create more pending requests
 - the arming sequence would fail

It's also possible for the arming to succeed, and then we're flying in violation of the intended prearm checks.

Doing things in the update function has the additional advantage of making things more efficient as we can push out terrain requests more often.
2022-08-09 14:31:14 +10:00
..
tools AP_Terrain: added a TERRAIN_MARGIN parameter 2021-08-22 20:32:46 +10:00
AP_Terrain.cpp AP_Terrain: fix bad prearms-pass-when-they-shouldn't issue 2022-08-09 14:31:14 +10:00
AP_Terrain.h AP_Terrain: fix bad prearms-pass-when-they-shouldn't issue 2022-08-09 14:31:14 +10:00
TerrainGCS.cpp AP_Terrain: fix bad prearms-pass-when-they-shouldn't issue 2022-08-09 14:31:14 +10:00
TerrainIO.cpp AP_Terrain: added terrain reference adjustment 2022-03-28 16:01:21 +11:00
TerrainMission.cpp AP_Terrain: removed terrain home correction 2022-03-10 07:34:20 +11:00
TerrainUtil.cpp AP_Terrain: fixed bug in disk offset calculation 2020-05-05 11:21:33 +10:00