summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-02-14 12:05:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-02-14 12:05:35 +0100
commitd8327db8025e56500ebb0bef2ab45aa8963a36ca (patch)
treeb3b62fd5656b822233028ceadbe954d7766ac3e1
parent84a3a39e926b1a641c38f82dc5586dc646e04a9e (diff)
filter/accela: revert deadzone test code
Looks strange ingame.
-rw-r--r--filter-accela/ftnoir_filter_accela.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp
index aa031f2c..fc660d2c 100644
--- a/filter-accela/ftnoir_filter_accela.cpp
+++ b/filter-accela/ftnoir_filter_accela.cpp
@@ -109,7 +109,7 @@ void accela::filter(const double* input, double *output)
if (fabs(d) > rot_dz)
d -= copysign(rot_dz, d);
else
- d /= 2;
+ d = 0;
deltas[i] = d / rot_thres;
}
@@ -144,7 +144,7 @@ void accela::filter(const double* input, double *output)
if (fabs(d) > pos_dz)
d -= copysign(pos_dz, d);
else
- d /= 2;
+ d = 0;
deltas[i] = d / pos_thres;
}