diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-10 14:22:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-10 14:22:31 +0200 |
commit | 27e58bfbf3e0bbfca8291ee018efe2fe74163ec2 (patch) | |
tree | a1a15930920a2f8cc7bfe1f0763e14febdc8f084 /tracker-pt | |
parent | f41aff9500649db7ea6655599291f224203eea0c (diff) |
cmake: add missing quotes while at it
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/point-filter.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tracker-pt/point-filter.cpp b/tracker-pt/point-filter.cpp index 85841993..2b32028b 100644 --- a/tracker-pt/point-filter.cpp +++ b/tracker-pt/point-filter.cpp @@ -12,6 +12,10 @@ void point_filter::reset() const PointOrder& point_filter::operator()(const PointOrder& input) { + using std::fmod; + using std::sqrt; + using std::pow; + if (!s.enable_point_filter) { t = std::nullopt; @@ -31,7 +35,7 @@ const PointOrder& point_filter::operator()(const PointOrder& input) constexpr int A = 1'000'000; double K = *s.point_filter_coefficient; f log10_pos = -2 + (int)K, rest = (f)(.999-fmod(K, 1.)*.9); - return A * std::pow((f)10, (f)-log10_pos) * rest; + return A * pow((f)10, (f)-log10_pos) * rest; ); f dist = 0; @@ -47,7 +51,7 @@ const PointOrder& point_filter::operator()(const PointOrder& input) return state_; f dt = (f)t->elapsed_seconds(); t->start(); - f delta = std::pow(dist, E) * C * dt; // gain + f delta = pow(dist, E) * C * dt; // gain //qDebug() << "gain" << std::min((f)1, delta); |