Copter: landing_complete stays true until thr is raised

The idea of the fix is we can't leave land while throttle is 0 and then
we ignore the baro and it's disturbances.
This commit is contained in:
Ju1ien 2014-01-19 15:00:52 +01:00 committed by Randy Mackay
parent 7fcd847f77
commit 311bba1419

View File

@ -1126,7 +1126,7 @@ static bool update_land_detector()
land_detector = 0;
}
}
}else{
}else if (g.rc_3.control_in != 0 || failsafe.radio){ // zero throttle locks land_complete as true
// we've sensed movement up or down so reset land_detector
land_detector = 0;
if(ap.land_complete) {