From 9879af37d5be92d263dee25f8bfa261c376ae2d3 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 2 Oct 2015 17:51:06 -0700 Subject: [PATCH] FixedErrorFilter constructor. --- firmware/baseband/clock_recovery.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/firmware/baseband/clock_recovery.hpp b/firmware/baseband/clock_recovery.hpp index 2e36414b..040ba018 100644 --- a/firmware/baseband/clock_recovery.hpp +++ b/firmware/baseband/clock_recovery.hpp @@ -89,6 +89,12 @@ private: class FixedErrorFilter { public: + FixedErrorFilter( + const float weight = (1.0f / 16.0f) + ) : weight { weight } + { + } + float operator()( const float lateness ) const { @@ -96,7 +102,7 @@ public: } private: - float weight { 1.0f / 16.0f }; + const float weight; }; class ClockRecovery {