mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 20:11:36 +08:00
add breakpoint and slope params for TPA
This commit is contained in:
committed by
Lorenz Meier
parent
5c78af0f36
commit
f1a1c9d7da
@@ -375,3 +375,31 @@ PARAM_DEFINE_FLOAT(MC_ACRO_Y_MAX, 360.0f);
|
||||
* @group Multicopter Attitude Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MC_RATT_TH, 1.0f);
|
||||
|
||||
/**
|
||||
* Threshold for Throttle PID Attenuation (TPA)
|
||||
*
|
||||
* Magnitude of throttle setpoint at which to begin attenuating roll/pitch P gain
|
||||
*
|
||||
* @min 0.0
|
||||
* @max 1.0
|
||||
* @decimal 2
|
||||
* @increment 0.1
|
||||
* @group Multicopter Attitude Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MC_TPA_BREAK, 1.0f);
|
||||
|
||||
/**
|
||||
* Slope for Throttle PID Attenuation (TPA)
|
||||
*
|
||||
* Rate at which to attenuate roll/pitch P gain
|
||||
* Attenuation factor is 1.0 when throttle magnitude is below the setpoint
|
||||
* Above the setpoint, the attenuation factor is (1 - slope*(abs(throttle)-breakpoint))
|
||||
*
|
||||
* @min 0.0
|
||||
* @max 2.0
|
||||
* @decimal 2
|
||||
* @increment 0.1
|
||||
* @group Multicopter Attitude Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MC_TPA_SLOPE, 1.0f);
|
||||
|
||||
Reference in New Issue
Block a user