mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
TradHeli: remove overall throttle level from landing check
This commit is contained in:
parent
b17c6d3368
commit
7ced9b1bd3
@ -204,7 +204,10 @@ static void update_land_detector()
|
|||||||
{
|
{
|
||||||
// detect whether we have landed by watching for low climb rate, motors hitting their lower limit, overall low throttle and low rotation rate
|
// detect whether we have landed by watching for low climb rate, motors hitting their lower limit, overall low throttle and low rotation rate
|
||||||
if ((abs(climb_rate) < LAND_DETECTOR_CLIMBRATE_MAX) && motors.limit.throttle_lower &&
|
if ((abs(climb_rate) < LAND_DETECTOR_CLIMBRATE_MAX) && motors.limit.throttle_lower &&
|
||||||
(motors.get_throttle_out() < get_non_takeoff_throttle()) && (ahrs.get_gyro().length() < LAND_DETECTOR_ROTATION_MAX)) {
|
#if FRAME_CONFIG != HELI_FRAME
|
||||||
|
(motors.get_throttle_out() < get_non_takeoff_throttle()) &&
|
||||||
|
#endif
|
||||||
|
(ahrs.get_gyro().length() < LAND_DETECTOR_ROTATION_MAX)) {
|
||||||
if (!ap.land_complete) {
|
if (!ap.land_complete) {
|
||||||
// increase counter until we hit the trigger then set land complete flag
|
// increase counter until we hit the trigger then set land complete flag
|
||||||
if( land_detector < LAND_DETECTOR_TRIGGER) {
|
if( land_detector < LAND_DETECTOR_TRIGGER) {
|
||||||
|
Loading…
Reference in New Issue
Block a user