AP_Terrain: removed unused variable

This commit is contained in:
Andrew Tridgell 2017-06-07 19:59:14 +10:00
parent 3e2b5269a6
commit c9e140a946

View File

@ -215,11 +215,6 @@ bool AP_Terrain::height_above_terrain(float &terrain_altitude, bool extrapolate)
if (!height_terrain_difference_home(terrain_difference, extrapolate)) {
return false;
}
Location loc;
if (!ahrs.get_position(loc)) {
// we don't know where we are
return false;
}
float relative_home_altitude;
ahrs.get_relative_position_D_home(relative_home_altitude);