mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-25 10:08:28 -04:00
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:
parent
7fcd847f77
commit
311bba1419
@ -1126,7 +1126,7 @@ static bool update_land_detector()
|
|||||||
land_detector = 0;
|
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
|
// we've sensed movement up or down so reset land_detector
|
||||||
land_detector = 0;
|
land_detector = 0;
|
||||||
if(ap.land_complete) {
|
if(ap.land_complete) {
|
||||||
|
Loading…
Reference in New Issue
Block a user