summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-24 15:37:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-24 15:37:05 +0200
commitfcc69215e6156a8afc186aadd22ab2d7821d52d6 (patch)
tree9ff55d90a9d793ba347761b69819a4bbfc550f32
parent150814587b865bfef8bc577070a45bfe6e09f051 (diff)
adjust constants again
-rw-r--r--ftnoir_filter_accela/ftnoir_filter_accela.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.h b/ftnoir_filter_accela/ftnoir_filter_accela.h
index 2534a1f4..56abf561 100644
--- a/ftnoir_filter_accela/ftnoir_filter_accela.h
+++ b/ftnoir_filter_accela/ftnoir_filter_accela.h
@@ -48,11 +48,12 @@ private:
// hardcoded distance between filter() calls
static constexpr double Hz = 3./1000;
// moving average history
- static constexpr double fast_alpha_seconds = 0.2;
+ static constexpr double fast_alpha_seconds = 0.6;
// max degrees considered "slow" after alpha
- static constexpr double max_slow_delta = 0.75;
- // if set to zero, never decreases response
- static constexpr double damping = 0.75;
+ static constexpr double max_slow_delta = 0.55;
+ // if set to zero, never decreases response above, can also slow
+ // down due to fast_alpha
+ static constexpr double damping = 0.05;
settings s;
bool first_run;
double last_output[6];