mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
Copter: fixed heli criterion for unsetting land_complete
in order to honor H_LAND_COL_MIN we need to check if we have reached the throttle lower limit
This commit is contained in:
parent
a67b9372fd
commit
e4564de837
@ -48,7 +48,7 @@ void Copter::update_land_detector()
|
||||
} else if (ap.land_complete) {
|
||||
#if FRAME_CONFIG == HELI_FRAME
|
||||
// if rotor speed and collective pitch are high then clear landing flag
|
||||
if (motors.get_throttle() > get_non_takeoff_throttle() && motors.rotor_runup_complete()) {
|
||||
if (motors.get_throttle() > get_non_takeoff_throttle() && !motors.limit.throttle_lower && motors.rotor_runup_complete()) {
|
||||
#else
|
||||
// if throttle output is high then clear landing flag
|
||||
if (motors.get_throttle() > get_non_takeoff_throttle()) {
|
||||
|
Loading…
Reference in New Issue
Block a user