Remove the 1.27 kHz offset from the spectrum plotted in Wide Graph.

This commit is contained in:
Joe Taylor 2022-12-13 09:23:25 -05:00
parent d1d92334bd
commit 5579c0a729

View File

@ -104,15 +104,15 @@ void WideGraph::dataSink2(float s[], int nkhz, int ihsym, int ndiskdata,
n++; n++;
if (n>=m_waterfallAvg) { if (n>=m_waterfallAvg) {
for (int i=0; i<NFFT; i++) for (int i=0; i<NFFT; i++) {
splot[i] /= n; //Normalize the average splot[i] /= n; //Normalize the average
}
n=0; n=0;
int w=ui->widePlot->plotWidth(); int w=ui->widePlot->plotWidth();
qint64 sf = nkhz - 0.5*w*nbpp*df/1000.0; qint64 sf = nkhz - 0.5*w*nbpp*df/1000.0;
if(sf != ui->widePlot->startFreq()) ui->widePlot->SetStartFreq(sf); if(sf != ui->widePlot->startFreq()) ui->widePlot->SetStartFreq(sf);
int i0=16384.0+(ui->widePlot->startFreq()-nkhz+1.27046+0.001*m_fCal) * int i0=16384.0+(ui->widePlot->startFreq()-nkhz+0.001*m_fCal) * 1000.0/df + 0.5;
1000.0/df + 0.5;
int i=i0; int i=i0;
for (int j=0; j<2048; j++) { for (int j=0; j<2048; j++) {
smax=0; smax=0;