Change channel_spectrum type to std::complex<float>.

Move FFT bit-reversal to complex<int16_t> -> complex<float> copy.
Change window so that adjacent bins have constant(-ish) gain.
Change window to float.
Change time domain samples to accumulate at even intervals over the FFT interval.
This commit is contained in:
Jared Boone
2015-09-17 17:37:05 -07:00
parent 882fbbef31
commit 291de8f869
4 changed files with 294 additions and 162 deletions

View File

@@ -25,6 +25,8 @@
#include "baseband_processor.hpp"
#include <cstddef>
#include <array>
#include <complex>
class WidebandSpectrum : public BasebandProcessor {
public:
@@ -32,6 +34,8 @@ public:
private:
size_t sample_count = 0;
std::array<std::complex<float>, 256> spectrum;
};
#endif/*__PROC_WIDEBAND_SPECTRUM_H__*/