Use correct sample rate for x-axis

This commit is contained in:
Anders Sandström
2020-12-01 09:04:17 +01:00
parent b43aa23f4b
commit f49fdb2d76

View File

@@ -480,7 +480,7 @@ void ecmcFFT::calcFFTXAxis() {
double freq = 0;
size_t size = dataItemInfo_->dataSize;
double deltaFreq = ecmcSampleRateHz_* ((double)size /
double deltaFreq = cfgDataSampleRateHz_* ((double)size /
(double)dataItemInfo_->dataElementSize) / ((double)(cfgNfft_));
for(unsigned int i = 0; i < (cfgNfft_ / 2 + 1); ++i) {
fftBufferXAxis_[i] = freq;