From 60f7ae951def3bcd5c9652cf55cbe0baf3f33c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Sandstr=C3=B6m?= Date: Mon, 6 Apr 2020 16:38:26 +0200 Subject: [PATCH] Refresh asyn params. --- ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp b/ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp index b12f2f8..c693bf9 100644 --- a/ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp +++ b/ecmcPlugin_FFT-loc/ecmcPlugin_FFTApp/src/ecmcFFT.cpp @@ -220,9 +220,14 @@ void ecmcFFT::dataUpdatedCallback(uint8_t* data, if(elementsInBuffer_ >= cfgNfft_) { //Buffer full if(!fftCalcDone_){ - calcFFT(); // FFT cacluation + // Perform calcs + calcFFT(); // FFT cacluation () scaleFFT(); // Scale FFT - calcFFTAmp(); // Calculate amplitude + calcFFTAmp(); // Calculate amplitude from complex + + // Update asyn with both input and result + asynRawData_->refreshParamRT(1); // Forced update (do not consider record rate) + asynFFTAmp_->refreshParamRT(1); // Forced update (do not consider record rate) if(cfgDbgMode_){ printComplexArray(fftBuffer_,