Copter: current_loc.alt is alt-above-home

This commit is contained in:
Randy Mackay 2015-02-10 21:32:44 +09:00
parent 7e11ec9a6f
commit 4d566bf462

View File

@ -11,7 +11,7 @@ static void read_inertia()
static void read_inertial_altitude()
{
// with inertial nav we can update the altitude and climb rate at 50hz
current_loc.alt = inertial_nav.get_altitude();
current_loc.alt = pv_alt_above_home(inertial_nav.get_altitude());
current_loc.flags.relative_alt = true;
climb_rate = inertial_nav.get_velocity_z();
}