AP_Terrain: Explicitly state that they are at the same latitude

This commit is contained in:
murata 2022-09-28 04:19:37 +09:00 committed by Peter Barker
parent 743c64cb15
commit f04cab917b
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ uint32_t AP_Terrain::east_blocks(struct grid_block &block) const
Location loc1, loc2;
loc1.lat = block.lat_degrees*10*1000*1000L;
loc1.lng = block.lon_degrees*10*1000*1000L;
loc2.lat = block.lat_degrees*10*1000*1000L;
loc2.lat = loc1.lat;
loc2.lng = (block.lon_degrees+1)*10*1000*1000L;
// shift another two blocks east to ensure room is available