First working code offering optional computation and use of a reference

spectrum.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6608 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2016-04-11 20:53:54 +00:00
parent 4b3ef19749
commit 7b6d51977b
9 changed files with 141 additions and 36 deletions
+3 -1
View File
@@ -176,7 +176,9 @@ void CPlotter::draw(float swide[], bool bScroll) //dr
if(m_bReference) { //Reference (red)
float df_ref=12000.0/6912.0;
int j=FreqfromX(i)/df_ref + 0.5;
y2=gain2d*spectra_.ref[j] + m_plot2dZero;
y2=spectra_.ref[j] + m_plot2dZero;
if(gain2d>1.5) y2=spectra_.filter[j] + m_plot2dZero;
}
if(i==iz-1) painter2D.drawPolyline(LineBuf,j);