mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 14:23:33 +08:00
MulticopterPositionControl: add horizontal margin for saturation cases
This commit is contained in:
@@ -39,9 +39,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Minimum thrust in auto thrust control
|
||||
* Minimum collective thrust in auto thrust control
|
||||
*
|
||||
* It's recommended to set it > 0 to avoid free fall with zero thrust.
|
||||
* Note: Without airmode zero thrust leads to zero roll/pitch control authority. (see MC_AIRMODE)
|
||||
*
|
||||
* @unit norm
|
||||
* @min 0.05
|
||||
@@ -106,6 +107,21 @@ PARAM_DEFINE_INT32(MPC_USE_HTE, 1);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MPC_THR_CURVE, 0);
|
||||
|
||||
/**
|
||||
* Horizontal thrust margin
|
||||
*
|
||||
* Margin that is kept for horizontal control when prioritizing vertical thrust.
|
||||
* To avoid completely starving horizontal control with high vertical error.
|
||||
*
|
||||
* @unit norm
|
||||
* @min 0.0
|
||||
* @max 0.5
|
||||
* @decimal 2
|
||||
* @increment 0.01
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MPC_THR_XY_MARG, 0.3f);
|
||||
|
||||
/**
|
||||
* Maximum thrust in auto thrust control
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user