Init matched filter output variable.

This commit is contained in:
Jared Boone 2016-02-06 16:24:14 -08:00
parent ac2320f0c5
commit aae1a953fc
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ void MatchedFilter::configure(
taps_reversed_ = std::make_unique<taps_t>(taps_count); taps_reversed_ = std::make_unique<taps_t>(taps_count);
taps_count_ = taps_count; taps_count_ = taps_count;
decimation_factor_ = decimation_factor; decimation_factor_ = decimation_factor;
output = 0;
std::reverse_copy(&taps[0], &taps[taps_count], &taps_reversed_[0]); std::reverse_copy(&taps[0], &taps[taps_count], &taps_reversed_[0]);
} }

View File

@ -71,7 +71,7 @@ private:
size_t taps_count_ { 0 }; size_t taps_count_ { 0 };
size_t decimation_factor_ { 1 }; size_t decimation_factor_ { 1 };
size_t decimation_phase { 0 }; size_t decimation_phase { 0 };
float output; float output { 0 };
void shift_by_decimation_factor(); void shift_by_decimation_factor();