|
|
|
@ -3209,8 +3209,9 @@ int8_t QuadPlane::forward_throttle_pct()
@@ -3209,8 +3209,9 @@ int8_t QuadPlane::forward_throttle_pct()
|
|
|
|
|
// lidar could cause the aircraft not to be able to
|
|
|
|
|
// approach the landing point when landing below the takeoff point
|
|
|
|
|
vel_forward.last_pct = vel_forward.integrator; |
|
|
|
|
} else if (in_vtol_land_final() && motors->limit.throttle_lower) { |
|
|
|
|
// we're in the settling phase of landing, disable fwd motor
|
|
|
|
|
} else if ((in_vtol_land_final() && motors->limit.throttle_lower) || |
|
|
|
|
(plane.g.rangefinder_landing && (plane.rangefinder.status_orient(ROTATION_PITCH_270) == RangeFinder::Status::OutOfRangeLow))) { |
|
|
|
|
// we're in the settling phase of landing or using a rangefinder that is out of range low, disable fwd motor
|
|
|
|
|
vel_forward.last_pct = 0; |
|
|
|
|
vel_forward.integrator = 0; |
|
|
|
|
} else { |
|
|
|
|