summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-18 16:07:53 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-18 16:07:53 +0100
commite3d531e4bedd7efe4b9610aa47d84c70245fe12a (patch)
tree9c8b00545d357347ad17559104063b6ddd223cf9
parentd0a701df6852703ed3a03b56346fa493db6da8e9 (diff)
filter/kalman: fix typo in identifier
-rw-r--r--filter-kalman/kalman.cpp4
-rw-r--r--filter-kalman/kalman.h2
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_)
{