diff --git a/libm65/qra64b.f90 b/libm65/qra64b.f90 index 7681076b9..20b9dca66 100644 --- a/libm65/qra64b.f90 +++ b/libm65/qra64b.f90 @@ -12,7 +12,7 @@ subroutine qra64b(nutc,nqd,ikhz,mousedf,ntol,xpol,mycall_12,hiscall_12, & open(17,file='red.dat',status='unknown') df=96000.0/NFFT1 - k0=(ikhz-75.74)*1000.0/df + k0=(ikhz-75.170)*1000.0/df nh=nfft2/2 fac=1.0/NFFT2 cx(0:nh)=ca(k0:k0+nh) diff --git a/plotter.cpp b/plotter.cpp index 3acfd8409..9df4e1f99 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -134,18 +134,20 @@ void CPlotter::paintEvent(QPaintEvent *) // paintEvent() std::ifstream f; f.open("./red.dat"); if(f) { - int x; + int x,y; + int y0=30; float freq,sync; -// float df = 0.001*m_fSample/32768.0; - QPen pen0(Qt::red, 3); + QPen pen0(Qt::red,1); painter2.setPen(pen0); - for(int i=0; i<50; i++) { + for(int i=0; i<99999; i++) { f >> freq >> sync; -// x = (freq - m_ZoomStartFreq)/df; - x=500; -// qDebug() << "a" << m_line << freq << sync << x; - painter2.drawLine(x,15,x,30); + if(f.eof()) break; + x=(freq - m_ZoomStartFreq)/df; + y=(sync-1.5)*2.0; + if(y>15.0) y=15.0; + if(x>=0 and x<=w) painter2.drawLine(x,y0-y,x,y0); } + f.close(); } }