only:test_fft
This commit is contained in:
parent
bb96d22125
commit
3d34a2875f
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue