mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 08:57:42 +00:00
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:
@@ -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__*/
|
||||
|
Reference in New Issue
Block a user