diff options
-rw-r--r-- | filter-kalman/kalman.cpp | 4 | ||||
-rw-r--r-- | filter-kalman/kalman.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/filter-kalman/kalman.cpp b/filter-kalman/kalman.cpp index 0fc0c4ba..5bd520ee 100644 --- a/filter-kalman/kalman.cpp +++ b/filter-kalman/kalman.cpp @@ -12,7 +12,7 @@ constexpr double settings::adaptivity_window_length; constexpr double settings::deadzone_scale; constexpr double settings::deadzone_exponent; constexpr double settings::process_sigma_pos; -constexpr double settings::process_simga_rot; +constexpr double settings::process_sigma_rot; void KalmanFilter::init() { @@ -119,7 +119,7 @@ void kalman::fill_process_noise_cov_matrix(StateMatrix &target, double dt) const // with a very well predictable trajectory (e.g. // https://en.wikipedia.org/wiki/Kalman_filter#Example_application.2C_technical) double sigma_pos = s.process_sigma_pos; - double sigma_angle = s.process_simga_rot; + double sigma_angle = s.process_sigma_rot; double a_pos = sigma_pos * sigma_pos * dt; double a_ang = sigma_angle * sigma_angle * dt; static constexpr double b = 20; diff --git a/filter-kalman/kalman.h b/filter-kalman/kalman.h index 6bd1005f..a788cab9 100644 --- a/filter-kalman/kalman.h +++ b/filter-kalman/kalman.h @@ -94,7 +94,7 @@ struct settings : opts { static constexpr double deadzone_scale = 8; static constexpr double deadzone_exponent = 2.0; static constexpr double process_sigma_pos = 0.5; - static constexpr double process_simga_rot = 0.5; + static constexpr double process_sigma_rot = 0.5; static double map_slider_value(const slider_value &v_) { |