mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 09:38:29 -04:00
AP_Terrain: removed unused variable
This commit is contained in:
parent
3e2b5269a6
commit
c9e140a946
@ -215,11 +215,6 @@ bool AP_Terrain::height_above_terrain(float &terrain_altitude, bool extrapolate)
|
|||||||
if (!height_terrain_difference_home(terrain_difference, extrapolate)) {
|
if (!height_terrain_difference_home(terrain_difference, extrapolate)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Location loc;
|
|
||||||
if (!ahrs.get_position(loc)) {
|
|
||||||
// we don't know where we are
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
float relative_home_altitude;
|
float relative_home_altitude;
|
||||||
ahrs.get_relative_position_D_home(relative_home_altitude);
|
ahrs.get_relative_position_D_home(relative_home_altitude);
|
||||||
|
Loading…
Reference in New Issue
Block a user