mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 16:51:16 +08:00
feat(fw): allow autolanding without flare (#29173)
* feat(fw): allow autolanding without flare * Update src/modules/fw_mode_manager/fw_mode_manager_params.yaml Co-authored-by: Silvan Fuhrer <silvan@auterion.com> --------- Co-authored-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
1 parent
f13d47d034
commit
de2b404dc4
3 files changed
+19
-6
No files matched your search
@@ -325,6 +325,10 @@ Flaring consists of a switch from altitude tracking to a shallow sink rate setpo
|
||||
The flaring altitude is calculated during the final approach via "time-to-impact" ([FW_LND_FL_TIME](#FW_LND_FL_TIME)) and the approach descent rate.
|
||||
An additional safety parameter [FW_LND_FLALT](#FW_LND_FLALT) sets the minimum altitude at which the vehicle will flare (if the time based altitude is too low to allow a safe flare maneuver).
|
||||
|
||||
The flare can be disabled by setting either [FW_LND_FL_TIME](#FW_LND_FL_TIME) or [FW_LND_FLALT](#FW_LND_FLALT) to -1.
|
||||
The vehicle then keeps tracking the landing slope at the landing airspeed ([FW_LND_AIRSPD](../advanced_config/parameter_reference.md#FW_LND_AIRSPD), or [FW_AIRSPD_MIN](../advanced_config/parameter_reference.md#FW_AIRSPD_MIN) if not set) until touchdown.
|
||||
In this case also set [FW_LND_USETER](#FW_LND_USETER) to `0`, otherwise the landing may abort just before touchdown when the distance sensor stops giving valid readings close to the ground.
|
||||
|
||||
If belly landing, the vehicle will continue in the flaring state until touchdown, land detection, and subsequent disarm. For runway landings, [FW_LND_TD_TIME](#FW_LND_TD_TIME) enables setting the time post flare start to pitch down the nose (e.g. consider tricycle gear) onto the runway ([RWTO_PSP](#RWTO_PSP)) and avoid bouncing. This time roughly corresponds to the touchdown post flare, and should be tuned for a given airframe during test flights only after the flare has been tuned.
|
||||
|
||||
The parameters that affect flaring are listed below.
|
||||
|
||||
@@ -1574,9 +1574,11 @@ FixedWingModeManager::control_auto_landing_straight(const hrt_abstime &now, cons
|
||||
// flare at the maximum of the altitude determined by the time before touchdown and a minimum flare altitude
|
||||
const float flare_rel_alt = math::max(_param_fw_lnd_fl_time.get() * _local_pos.vz, _param_fw_lnd_flalt.get());
|
||||
|
||||
// flare disabled if flare altitude or time is negative: land on the glide slope
|
||||
const bool flare_enabled = _param_fw_lnd_flalt.get() >= 0.f && _param_fw_lnd_fl_time.get() >= 0.f;
|
||||
|
||||
// the terrain estimate (if enabled) is always used to determine the flaring altitude
|
||||
if ((_current_altitude < terrain_alt + flare_rel_alt) || _flare_states.flaring) {
|
||||
if ((flare_enabled && _current_altitude < terrain_alt + flare_rel_alt) || _flare_states.flaring) {
|
||||
// flare and land with minimal speed
|
||||
|
||||
// flaring is a "point of no return"
|
||||
@@ -1756,6 +1758,9 @@ FixedWingModeManager::control_auto_landing_circular(const hrt_abstime &now, cons
|
||||
// flare at the maximum of the altitude determined by the time before touchdown and a minimum flare altitude
|
||||
const float flare_rel_alt = math::max(_param_fw_lnd_fl_time.get() * _local_pos.vz, _param_fw_lnd_flalt.get());
|
||||
|
||||
// flare disabled if flare altitude or time is negative: land on the descent orbit
|
||||
const bool flare_enabled = _param_fw_lnd_flalt.get() >= 0.f && _param_fw_lnd_fl_time.get() >= 0.f;
|
||||
|
||||
float loiter_radius = fabsf(pos_sp_curr.loiter_radius);
|
||||
bool loiter_direction_ccw = pos_sp_curr.loiter_direction_counter_clockwise;
|
||||
|
||||
@@ -1764,7 +1769,7 @@ FixedWingModeManager::control_auto_landing_circular(const hrt_abstime &now, cons
|
||||
loiter_direction_ccw = _param_nav_loiter_rad.get() < -FLT_EPSILON;
|
||||
}
|
||||
|
||||
if ((_current_altitude < terrain_alt + flare_rel_alt) || _flare_states.flaring) {
|
||||
if ((flare_enabled && _current_altitude < terrain_alt + flare_rel_alt) || _flare_states.flaring) {
|
||||
// flare and land with minimal speed
|
||||
|
||||
// flaring is a "point of no return"
|
||||
|
||||
@@ -18,12 +18,14 @@ parameters:
|
||||
FW_LND_FLALT:
|
||||
description:
|
||||
short: Landing flare altitude (relative to landing altitude)
|
||||
long: 'NOTE: max(FW_LND_FLALT, FW_LND_FL_TIME * |z-velocity|) is taken as
|
||||
the flare altitude'
|
||||
long: |-
|
||||
NOTE: max(FW_LND_FLALT, FW_LND_FL_TIME * |z-velocity|) is taken as the flare altitude
|
||||
|
||||
Set FW_LND_FLALT or FW_LND_FL_TIME to -1 to disable the flare (land on the glide slope at landing airspeed).
|
||||
type: float
|
||||
default: 0.5
|
||||
unit: m
|
||||
min: 0.0
|
||||
min: -1.0
|
||||
decimal: 1
|
||||
increment: 0.5
|
||||
FW_LND_PARA_EN:
|
||||
@@ -150,10 +152,12 @@ parameters:
|
||||
to trigger the flare.
|
||||
|
||||
NOTE: max(FW_LND_FLALT, FW_LND_FL_TIME * descent rate) is taken as the flare altitude
|
||||
|
||||
Set FW_LND_FLALT or FW_LND_FL_TIME to -1 to disable the flare (land on the glide slope at landing airspeed).
|
||||
type: float
|
||||
default: 1.0
|
||||
unit: s
|
||||
min: 0.1
|
||||
min: -1.0
|
||||
max: 5.0
|
||||
decimal: 1
|
||||
increment: 0.1
|
||||
|
||||
Reference in new issue
Block a user