diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-05-22 07:56:23 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-05-22 07:56:23 +0200 |
commit | ca510926a258e0e332deb1dce427f4ff629c9348 (patch) | |
tree | 41a0726375174025f883d35e6b6c7b084c302d58 | |
parent | 9a2538d46b90d10b5a902b128a74a15142efd758 (diff) |
accela: enlarge rotation deadzone to 2 degrees
Suggested-by: @FlyingCircus-
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela.cpp | 2 | ||||
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp index 62ae9c33..25452219 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -48,7 +48,7 @@ void FTNoIR_Filter::filter(const double* input, double *output) const double RC = 2 * s.ewma / 1000.; // seconds const double alpha = dt/(dt+RC); - const double rot_dz = s.rot_deadzone * 3. / 1000.; + const double rot_dz = s.rot_deadzone * 2. / 100.; const double trans_dz = s.trans_deadzone * 1. / 100.; for (int i = 0; i < 6; i++) diff --git a/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp b/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp index 8e4035be..6bcc249b 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela_dialog.cpp @@ -71,7 +71,7 @@ void FilterControls::update_ewma_display(int value) void FilterControls::update_rot_dz_display(int value) { - ui.rot_dz->setText(QString::number(value * 3 / 1000.) + "°"); + ui.rot_dz->setText(QString::number(value * 2 / 100.) + "°"); } void FilterControls::update_trans_dz_display(int value) |