summaryrefslogtreecommitdiffhomepage
path: root/filter-kalman
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-08 23:20:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-08 23:20:56 +0200
commit90940a774eab876c38d5cef981b4be5bae67a462 (patch)
tree2e60edc1719ffd53752a55a7f0444166965e90c5 /filter-kalman
parente3292e1ddaa8d69eb320d2700fc582b4675cf8ce (diff)
modernize only
Diffstat (limited to 'filter-kalman')
-rw-r--r--filter-kalman/kalman.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter-kalman/kalman.cpp b/filter-kalman/kalman.cpp
index 472f01f0..f88d7f90 100644
--- a/filter-kalman/kalman.cpp
+++ b/filter-kalman/kalman.cpp
@@ -195,8 +195,8 @@ void kalman::reset()
first_run = true;
dt_since_last_input = 0;
- prev_slider_pos[0] = static_cast<slider_value>(s.noise_pos_slider_value);
- prev_slider_pos[1] = static_cast<slider_value>(s.noise_rot_slider_value);
+ prev_slider_pos[0] = s.noise_pos_slider_value;
+ prev_slider_pos[1] = s.noise_rot_slider_value;
dz_filter.reset();
}