mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-09-07 07:37:48 -04:00
Remove the 1.27 kHz offset from the spectrum plotted in Wide Graph.
This commit is contained in:
parent
d1d92334bd
commit
5579c0a729
@ -104,15 +104,15 @@ void WideGraph::dataSink2(float s[], int nkhz, int ihsym, int ndiskdata,
|
||||
n++;
|
||||
|
||||
if (n>=m_waterfallAvg) {
|
||||
for (int i=0; i<NFFT; i++)
|
||||
splot[i] /= n; //Normalize the average
|
||||
for (int i=0; i<NFFT; i++) {
|
||||
splot[i] /= n; //Normalize the average
|
||||
}
|
||||
n=0;
|
||||
|
||||
int w=ui->widePlot->plotWidth();
|
||||
qint64 sf = nkhz - 0.5*w*nbpp*df/1000.0;
|
||||
if(sf != ui->widePlot->startFreq()) ui->widePlot->SetStartFreq(sf);
|
||||
int i0=16384.0+(ui->widePlot->startFreq()-nkhz+1.27046+0.001*m_fCal) *
|
||||
1000.0/df + 0.5;
|
||||
int i0=16384.0+(ui->widePlot->startFreq()-nkhz+0.001*m_fCal) * 1000.0/df + 0.5;
|
||||
int i=i0;
|
||||
for (int j=0; j<2048; j++) {
|
||||
smax=0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user