mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 00:43:34 +08:00
mtecs: add D gain for speed outer loop
This commit is contained in:
@@ -160,8 +160,8 @@ protected:
|
|||||||
/* control blocks */
|
/* control blocks */
|
||||||
BlockFFPILimitedCustom _controlTotalEnergy; /**< FFPI controller for total energy control: output is throttle */
|
BlockFFPILimitedCustom _controlTotalEnergy; /**< FFPI controller for total energy control: output is throttle */
|
||||||
BlockFFPILimitedCustom _controlEnergyDistribution; /**< FFPI controller for energy distribution control: output is pitch */
|
BlockFFPILimitedCustom _controlEnergyDistribution; /**< FFPI controller for energy distribution control: output is pitch */
|
||||||
BlockPDLimited _controlAltitude; /**< P controller for altitude: output is the flight path angle setpoint */
|
BlockPDLimited _controlAltitude; /**< PD controller for altitude: output is the flight path angle setpoint */
|
||||||
BlockPLimited _controlAirSpeed; /**< P controller for airspeed: output is acceleration setpoint */
|
BlockPDLimited _controlAirSpeed; /**< PD controller for airspeed: output is acceleration setpoint */
|
||||||
|
|
||||||
/* Other calculation Blocks */
|
/* Other calculation Blocks */
|
||||||
control::BlockDerivative _airspeedDerivative;
|
control::BlockDerivative _airspeedDerivative;
|
||||||
|
|||||||
@@ -233,6 +233,23 @@ PARAM_DEFINE_FLOAT(MT_FPA_MAX, 30.0f);
|
|||||||
*/
|
*/
|
||||||
PARAM_DEFINE_FLOAT(MT_ACC_P, 1.5f);
|
PARAM_DEFINE_FLOAT(MT_ACC_P, 1.5f);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* D gain for the airspeed control
|
||||||
|
* Maps the change of airspeed error to the acceleration setpoint
|
||||||
|
*
|
||||||
|
* @min 0.0f
|
||||||
|
* @max 10.0f
|
||||||
|
* @group mTECS
|
||||||
|
*/
|
||||||
|
PARAM_DEFINE_FLOAT(MT_ACC_D, 0.0f);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lowpass for ACC error derivative calculation (see MT_ACC_D)
|
||||||
|
*
|
||||||
|
* @group mTECS
|
||||||
|
*/
|
||||||
|
PARAM_DEFINE_FLOAT(MT_ACC_D_LP, 1.0f);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Minimal acceleration (air)
|
* Minimal acceleration (air)
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user