diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-02 06:50:08 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-02 06:50:08 +0200 |
commit | 4f13435a9d1ca366afe7ec206ce9957980d58e88 (patch) | |
tree | ca0c0d9c62032d66cda69cba32c54c441c02bf5f | |
parent | 9d4789c1a5e391ceb0028b0a9aa1418d1f1f8f5f (diff) | |
parent | d626a60eca7a511786435ec796d7864c59463939 (diff) |
Merge branch 'unstable' into trackhat-ui
* unstable:
accela: guard against negative value overflow properly
camera: fix build
accela: higher gain at small deltas
tracker_rs: reverted fix. need to build with Qt 5.5.1+ instead.
-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 ac166447..3fd7c421 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -97,7 +97,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 = vec < 0.; + const bool negp = in < 0.; const bool done = negp ? result <= in : result >= in; |