diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-07 21:07:57 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-07 21:36:50 +0200 |
commit | 0ba8d397995ef955ae5ee99a11355a2c65e16fd8 (patch) | |
tree | 899704cc987f55f3c4dcb9c11ae0b10962eea4fa | |
parent | 7eb9227aab7b18c9ab6fe31775f1d0b85cc5b7d0 (diff) |
Revert "accela: guard against negative value overflow properly"
This reverts commit d626a60eca7a511786435ec796d7864c59463939.
-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 acb196c8..ab5fda07 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -98,7 +98,7 @@ void FTNoIR_Filter::filter(const double* input, double *output) const double thres = i >= 3 ? rot_t : trans_t; const double val = m.getValue(vec_ / thres); const double result = last_output[i] + (vec < 0 ? -1 : 1) * dt * val; - const bool negp = in < 0.; + const bool negp = vec < 0.; const bool done = negp ? result <= in : result >= in; |