summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;
}