mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 19:13:34 +08:00
Helicopter aiframe and basic PID control (#5339)
* Helicopter aiframe and basic PID control * codestyle * Blade 130x gains working but not optimal * Changed behaviour of feedforward for all multicopter
This commit is contained in:
committed by
Lorenz Meier
parent
75c95955fc
commit
7f04e3c759
@@ -788,8 +788,10 @@ MulticopterAttitudeControl::control_attitude_rates(float dt)
|
||||
|
||||
/* angular rates error */
|
||||
math::Vector<3> rates_err = _rates_sp - rates;
|
||||
|
||||
_att_control = _params.rate_p.emult(rates_err * tpa) + _params.rate_d.emult(_rates_prev - rates) / dt + _rates_int +
|
||||
_params.rate_ff.emult(_rates_sp - _rates_sp_prev) / dt;
|
||||
_params.rate_ff.emult(_rates_sp);
|
||||
|
||||
_rates_sp_prev = _rates_sp;
|
||||
_rates_prev = rates;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user