diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-14 09:40:54 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-14 09:40:54 +0200 |
commit | b844769a6d9e8290325774fe401675022efc553d (patch) | |
tree | f4c2465f1f988b7f24bbdc563332f83696b30a61 /ftnoir_filter_accela | |
parent | ec054c285c22ef1ff54841adb25f2d5abe41bdcb (diff) |
accela: reduce diff to trackhat
Diffstat (limited to 'ftnoir_filter_accela')
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.h b/ftnoir_filter_accela/ftnoir_filter_accela.h index 4b0d528f..766bc69e 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.h +++ b/ftnoir_filter_accela/ftnoir_filter_accela.h @@ -10,14 +10,14 @@ using namespace options; #include "opentrack/timer.hpp" -struct settings : opts { +struct settings_accela : opts { value<int> rot_threshold, trans_threshold, ewma, rot_deadzone, trans_deadzone; static constexpr double mult_rot = 10. / 100.; static constexpr double mult_trans = 5. / 100.; static constexpr double mult_rot_dz = 2. / 100.; static constexpr double mult_trans_dz = 1. / 100.; static constexpr double mult_ewma = 2.; - settings() : + settings_accela() : opts("Accela"), rot_threshold(b, "rotation-threshold", 30), trans_threshold(b, "translation-threshold", 50), @@ -34,7 +34,7 @@ public: void filter(const double* input, double *output); Map rot, trans; private: - settings s; + settings_accela s; bool first_run; double last_output[6]; double smoothed_input[6]; @@ -53,7 +53,7 @@ private: void discard(); void save(); FTNoIR_Filter* accela_filter; - settings s; + settings_accela s; private slots: void doOK(); void doCancel(); |