• calculate LBin and Ubin from magnify mode & frequency conversion &
filterpassband
• rearrange data in sd.FFT_Samples (the buffer with the lowpass-filtered, scaled
complex magnitudes from the FFT)
• jump into UiSpectrum_CalculateSnap (Lbin, Ubin, posbin, bin_BW)
• search for max magnitude value inside the passband (between Lbin and Ubin)
• maxbin is the bin number of the bin with that max magnitude
• calculate offset to Rx frequency depending on ts.cw_lsb (CW-L or CW-U)
• delta1 is first offset in steps of bin_BW
• delta2 is second offset determined by quadratic interpolation of the three bins
maxbin-1, maxbin and maxbin+1 (delta2 is always < bin_BW !)
• delta = delta1 + delta2
• CW-L: delta = delta + cw_sidetone_freq;
• CW-U: delta = delta - cw_sidetone_freq;
• jump to UiSpectrum_CWSnapDisplay (delta)
• clamp data for display (display is +-140Hz at the moment)
• draw yellow indicator with accuracy of 5Hz/pixel
• done