diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-10 09:49:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-10 10:42:01 +0200 |
commit | 63f4c05b2663fea3471210213aae022908a32546 (patch) | |
tree | 317bd30ce1996daf7aa68ef50eaf3f9f7ac00cab | |
parent | d4a9bb0b29c26de216f7d0da34397dfbc5a592df (diff) |
filter/accela: use elapsed_seconds() rather than home-rolled version
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index b165a56d..f05b8f41 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -73,7 +73,7 @@ void FTNoIR_Filter::filter(const double* input, double *output) const double rot_t = (1+s.rot_threshold) * s.mult_rot; const double trans_t = (1+s.trans_threshold) * s.mult_trans; - const double dt = t.elapsed() * 1e-9; + const double dt = t.elapsed_seconds(); t.start(); const double RC = s.mult_ewma * s.ewma / 1000.; // seconds |