From 90940a774eab876c38d5cef981b4be5bae67a462 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 8 Jul 2018 23:20:56 +0200 Subject: modernize only --- filter-kalman/kalman.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter-kalman/kalman.cpp') 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(s.noise_pos_slider_value); - prev_slider_pos[1] = static_cast(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(); } -- cgit v1.2.3