diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-24 13:55:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-24 13:55:18 +0200 |
commit | 150814587b865bfef8bc577070a45bfe6e09f051 (patch) | |
tree | 4278ebcb95d4c67a6abdd67a828a90b3448d8d37 | |
parent | 463046793d203d21b2de00993e6abc981dbed97c (diff) |
adjust smoothing coeffs
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.h b/ftnoir_filter_accela/ftnoir_filter_accela.h index da5155ca..2534a1f4 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.h +++ b/ftnoir_filter_accela/ftnoir_filter_accela.h @@ -48,11 +48,11 @@ private: // hardcoded distance between filter() calls static constexpr double Hz = 3./1000; // moving average history - static constexpr double fast_alpha_seconds = 10; + static constexpr double fast_alpha_seconds = 0.2; // max degrees considered "slow" after alpha - static constexpr double max_slow_delta = 0.34; + static constexpr double max_slow_delta = 0.75; // if set to zero, never decreases response - static constexpr double damping = 0.3; + static constexpr double damping = 0.75; settings s; bool first_run; double last_output[6]; |