From 1544e0730dd9066d28638dd60df3c5fc362b6c72 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 24 Nov 2014 16:19:34 +0100 Subject: accela: tweak delta smoothing --- ftnoir_filter_accela/ftnoir_filter_accela.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.h b/ftnoir_filter_accela/ftnoir_filter_accela.h index ed008996..9052f49b 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.h +++ b/ftnoir_filter_accela/ftnoir_filter_accela.h @@ -26,7 +26,7 @@ struct settings { struct state_display { double y, p, r; - state_display() : y(0), p(0), r(0) {}; + state_display() : y(0), p(0), r(0) {} }; class FTNoIR_Filter : public IFilter @@ -36,8 +36,8 @@ public: void filter(const double* target_camera_position, double *new_camera_position); state_display state; private: - // moving average history amount - static constexpr double fast_alpha_seconds = 0.7; + // moving average history amount in seconds + static constexpr double fast_alpha_seconds = 0.3; // max degrees considered "slow" after moving average static constexpr double max_slow_delta = 0.9; settings s; -- cgit v1.2.3