summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-24 16:19:34 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-24 16:19:34 +0100
commit1544e0730dd9066d28638dd60df3c5fc362b6c72 (patch)
tree537fe0cf089b21044e168d92de70ad78be0773e3
parent2b8ef6b069e53926a9aec9d0269351a71f884aeb (diff)
accela: tweak delta smoothing
-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 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;