Copter: flag current alt as relative

This is required so common Log_Write_Camera can calculate relative and
abs altitudes provided by either copter or plane

pair programmed with Craig Elder
This commit is contained in:
Randy Mackay 2014-06-11 11:57:01 +09:00 committed by Andrew Tridgell
parent 8c488ebd87
commit 50e024fe8f

View File

@ -12,5 +12,6 @@ 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.flags.relative_alt = true;
climb_rate = inertial_nav.get_velocity_z();
}