Browse Source

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
master
Andrew Tridgell 9 years ago
parent
commit
e4564de837
  1. 2
      ArduCopter/land_detector.cpp

2
ArduCopter/land_detector.cpp

@ -48,7 +48,7 @@ void Copter::update_land_detector()
} else if (ap.land_complete) { } else if (ap.land_complete) {
#if FRAME_CONFIG == HELI_FRAME #if FRAME_CONFIG == HELI_FRAME
// if rotor speed and collective pitch are high then clear landing flag // 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 #else
// if throttle output is high then clear landing flag // if throttle output is high then clear landing flag
if (motors.get_throttle() > get_non_takeoff_throttle()) { if (motors.get_throttle() > get_non_takeoff_throttle()) {

Loading…
Cancel
Save