diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-24 12:34:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-24 12:34:30 +0200 |
commit | 463046793d203d21b2de00993e6abc981dbed97c (patch) | |
tree | 0bf18f66013f3c403881574db0899bfd6c81505e | |
parent | bc5b5a705f6fa44813d387f31e455bda197c2110 (diff) |
damping can't affect speed estimate
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp index 22feafae..8a98e528 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -60,7 +60,7 @@ void FTNoIR_Filter::filter(const double* input, double *output) const double cur_fast = std::abs(vec) * fast_alpha + fast_state[i]*(1. - fast_alpha); fast_state[i] = cur_fast; const double how_fast = std::max(0., fast_c * (cur_fast - max_slow_delta)); - datum = parabola(a, vec * (1.-damping + how_fast), deadzone, s.expt); + datum = parabola(a, vec * (1.-damping + (1.+damping)*how_fast), deadzone, s.expt); } else datum = parabola(a, vec, deadzone, expt); |