Skip to content
Snippets Groups Projects
Commit deaedb26 authored by Ewan Barr's avatar Ewan Barr
Browse files

extra debugging

parent 5a784ac9
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ FftSpectrometer<HandlerType>::FftSpectrometer( ...@@ -41,6 +41,7 @@ FftSpectrometer<HandlerType>::FftSpectrometer(
float scale = (_input_level * np.sqrt(_nchans))**2; float scale = (_input_level * np.sqrt(_nchans))**2;
float offset = scale * dof; float offset = scale * dof;
float scaling = scale * std::sqrt(2 * dof); float scaling = scale * std::sqrt(2 * dof);
BOOST_LOG_TRIVIAL(debug) << "Correction factors for 8-bit conversion: offset = " << offset << ", scaling = " << scaling;
BOOST_LOG_TRIVIAL(debug) << "Generating FFT plan"; BOOST_LOG_TRIVIAL(debug) << "Generating FFT plan";
int n[] = {static_cast<int>(_fft_length)}; int n[] = {static_cast<int>(_fft_length)};
CUFFT_ERROR_CHECK(cufftPlanMany(&_fft_plan, 1, n, NULL, 1, _fft_length, CUFFT_ERROR_CHECK(cufftPlanMany(&_fft_plan, 1, n, NULL, 1, _fft_length,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment