Plane: fixed non-terrain landing

This commit is contained in:
Andrew Tridgell 2014-08-14 08:04:06 +10:00
parent e1a13edf3d
commit c06067c71b

View File

@ -434,7 +434,7 @@ static float height_above_target(void)
}
#endif
return adjusted_altitude_cm()*0.01f - target_alt;
return (adjusted_altitude_cm()*0.01f - ahrs.get_home().alt*0.01f) - target_alt;
}
/*