summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-25 20:25:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-25 20:25:42 +0200
commit0a728158654cb97165360f8a625cf66ce52e0d71 (patch)
tree87896921e3a77ce130542e6996244a457c8e43c8
parent020b076424fa40a4156e44f00471238be6f3e677 (diff)
change coeffs
-rw-r--r--ftnoir_filter_accela/ftnoir_filter_accela.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.h b/ftnoir_filter_accela/ftnoir_filter_accela.h
index 56abf561..a7821516 100644
--- a/ftnoir_filter_accela/ftnoir_filter_accela.h
+++ b/ftnoir_filter_accela/ftnoir_filter_accela.h
@@ -49,11 +49,11 @@ private:
static constexpr double Hz = 3./1000;
// moving average history
static constexpr double fast_alpha_seconds = 0.6;
- // max degrees considered "slow" after alpha
- static constexpr double max_slow_delta = 0.55;
+ // max degrees considered "slow" after moving average
+ static constexpr double max_slow_delta = 0.9;
// if set to zero, never decreases response above, can also slow
// down due to fast_alpha
- static constexpr double damping = 0.05;
+ static constexpr double damping = 0.;
settings s;
bool first_run;
double last_output[6];