Copter: Allow fast descend while Prec Landing

This commit is contained in:
rishabsingh3003 2023-09-03 23:11:52 -04:00 committed by Peter Barker
parent d5a5f4f863
commit 8a1fa0e096
3 changed files with 3 additions and 3 deletions

View File

@ -666,7 +666,7 @@ void Mode::land_run_vertical_control(bool pause_descent)
// doing precland but too far away from the obstacle // doing precland but too far away from the obstacle
// do not descend // do not descend
cmb_rate = 0.0f; cmb_rate = 0.0f;
} else if (target_pos_meas.z > 35.0f && target_pos_meas.z < 200.0f) { } else if (target_pos_meas.z > 35.0f && target_pos_meas.z < 200.0f && !copter.precland.do_fast_descend()) {
// very close to the ground and doing prec land, lets slow down to make sure we land on target // very close to the ground and doing prec land, lets slow down to make sure we land on target
// compute desired descent velocity // compute desired descent velocity
const float precland_acceptable_error_cm = 15.0f; const float precland_acceptable_error_cm = 15.0f;

View File

@ -178,7 +178,7 @@ const AP_Param::GroupInfo AC_PrecLand::var_info[] = {
// @Param: OPTIONS // @Param: OPTIONS
// @DisplayName: Precision Landing Extra Options // @DisplayName: Precision Landing Extra Options
// @Description: Precision Landing Extra Options // @Description: Precision Landing Extra Options
// @Bitmask: 0: Moving Landing Target, 1: Allow Precision Landing after manual reposition, 2: Do not slow vertical speed in final descend phase // @Bitmask: 0: Moving Landing Target, 1: Allow Precision Landing after manual reposition, 2: Maintain high speed in final descent
// @User: Advanced // @User: Advanced
AP_GROUPINFO("OPTIONS", 17, AC_PrecLand, _options, 0), AP_GROUPINFO("OPTIONS", 17, AC_PrecLand, _options, 0),