mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: removed terrain home correction
This commit is contained in:
parent
fa4edc2ba1
commit
46ede1b73f
@ -628,8 +628,8 @@ void Plane::rangefinder_terrain_correction(float &height)
|
||||
return;
|
||||
}
|
||||
float terrain_amsl1, terrain_amsl2;
|
||||
if (!terrain.height_amsl(current_loc, terrain_amsl1, false) ||
|
||||
!terrain.height_amsl(next_WP_loc, terrain_amsl2, false)) {
|
||||
if (!terrain.height_amsl(current_loc, terrain_amsl1) ||
|
||||
!terrain.height_amsl(next_WP_loc, terrain_amsl2)) {
|
||||
return;
|
||||
}
|
||||
float correction = (terrain_amsl1 - terrain_amsl2);
|
||||
|
Loading…
Reference in New Issue
Block a user