floatflare_relative_alt=-10.0f;//negative!, be generous here as we currently have to rely on the user input for the waypoint //xxx: find better definition, e.g. as a function of the horizontal distance ("abflachbogen")
if(altitude_error>-10.0f||land_noreturn){//be generous here as we currently have to rely on the user input for the waypoint, checking for land_noreturn to avoid unwanted climb out
if(altitude_error>flare_relative_alt||land_noreturn){//checking for land_noreturn to avoid unwanted climb out
/* land with minimal speed */
/* force TECS to only control speed with pitch, altitude is only implicitely controlled now */
_tecs.set_speed_weight(2.0f);
// /* force TECS to only control speed with pitch, altitude is only implicitely controlled now */