diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2013-11-13 11:05:22 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2013-11-13 11:05:22 +0100 |
commit | 38172497c116548320c74696d795f9198e0bf4e4 (patch) | |
tree | a3b446c3c503c18d4d4a25be71a90553bd8b737d /src/lib/ecl/attitude_fw/ecl_roll_controller.h | |
parent | 8e92d47de1d29ca3461911483361809697bc236a (diff) | |
download | px4-firmware-38172497c116548320c74696d795f9198e0bf4e4.tar.gz px4-firmware-38172497c116548320c74696d795f9198e0bf4e4.tar.bz2 px4-firmware-38172497c116548320c74696d795f9198e0bf4e4.zip |
reintroduce feedforward
Diffstat (limited to 'src/lib/ecl/attitude_fw/ecl_roll_controller.h')
-rw-r--r-- | src/lib/ecl/attitude_fw/ecl_roll_controller.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecl/attitude_fw/ecl_roll_controller.h b/src/lib/ecl/attitude_fw/ecl_roll_controller.h index dd7d1bf53..efc7b8944 100644 --- a/src/lib/ecl/attitude_fw/ecl_roll_controller.h +++ b/src/lib/ecl/attitude_fw/ecl_roll_controller.h @@ -71,18 +71,27 @@ public: _tc = time_constant; } } + void set_k_p(float k_p) { _k_p = k_p; } + void set_k_i(float k_i) { _k_i = k_i; } + void set_k_d(float k_d) { _k_d = k_d; } + + void set_k_ff(float k_ff) { + _k_ff = k_ff; + } + void set_integrator_max(float max) { _integrator_max = max; } + void set_max_rate(float max_rate) { _max_rate = max_rate; } @@ -105,6 +114,7 @@ private: float _k_p; float _k_i; float _k_d; + float _k_ff; float _integrator_max; float _max_rate; float _last_output; |