only:test_fft

This commit is contained in:
Andrey 2024-10-21 00:05:06 -04:00
parent bb96d22125
commit 3d34a2875f
2 changed files with 7 additions and 7 deletions

View File

@ -14,13 +14,6 @@
#include "development/knock_spectrogram.h"
#include "fft/fft.hpp"
struct SpectrogramData {
fft::complex_type fftBuffer[KNOCK_SIZE];
float frequencies[KNOCK_SIZE/2];
float amplitudes[KNOCK_SIZE/2];
float window[KNOCK_SIZE];
};
static SpectrogramData spectrogramData0; // temporary use ram, will use big_buffer
static SpectrogramData* spectrogramData = &spectrogramData0;
static volatile bool enableKnockSpectrogram = false;

View File

@ -12,6 +12,13 @@ void knockSamplingCallback(uint8_t cylinderIndex, efitick_t nowNt);
#define KNOCK_SIZE 512
struct SpectrogramData {
fft::complex_type fftBuffer[KNOCK_SIZE];
float frequencies[KNOCK_SIZE/2];
float amplitudes[KNOCK_SIZE/2];
float window[KNOCK_SIZE];
};
#ifdef KNOCK_SPECTROGRAM
void knockSpectrogramEnable();
void knockSpectrogramDisable();