   // KickFFT<int32_t>::fft(fs, 0, 4, FFT_SIZE, fftBuffer, mag, startIndex, endIndex);
   fft_phase(fs, 0, 4, FFT_SIZE, fftBuffer, mag, phase, startIndex, endIndex);
   updatePhase(mag, phase, startIndex, endIndex);
-  float hz = fs * 2 * PI/ _phaseRateAverage;
-  Serial.print("BPM: "); Serial.println(hz * 60);
+  //float hz = fs * _phaseRateAverage / 2 / PI;
+  //Serial.print("BPM: "); Serial.println(hz * 60);
+  Serial.print("radsPerUpdate: "); Serial.println(_phaseRateAverage);
 
 
   // each sample changes the phase _phaseRateAverage rads

	}
}

float normalize_rads(float angle_rad) {
    if (angle_rad < 0) {
        angle_rad += 2 * PI;

#include <Adafruit_Sensor.h>
#include <PDM.h>
#include <KickFFT.h>

#define ACC_SIZE 64
#define FFT_SIZE 512
