1. Display "best of N" rather than "average of N" in Wide Graph waterfall.

2. More fixes of widget visibilities.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7175 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2016-10-13 19:20:24 +00:00
parent 94bbe4ff1a
commit f313ff2a60
3 changed files with 15 additions and 7 deletions
+5 -4
View File
@@ -149,7 +149,7 @@ void WideGraph::dataSink2(float s[], float df3, int ihsym, int ndiskdata) //dat
static float splot[NSMAX];
int nbpp = ui->widePlot->binsPerPixel();
//Average spectra over specified number, m_waterfallAvg
//Average spectra over specified number, m_waterfallAvg
if (m_n==0) {
for (int i=0; i<NSMAX; i++)
splot[i]=s[i];
@@ -167,11 +167,12 @@ void WideGraph::dataSink2(float s[], float df3, int ihsym, int ndiskdata) //dat
int jz=5000.0/(nbpp*df3);
if(jz>MAX_SCREENSIZE) jz=MAX_SCREENSIZE;
for (int j=0; j<jz; j++) {
float sum=0;
float ss=0;
for (int k=0; k<nbpp; k++) {
sum += splot[i++];
if(splot[i]>ss) ss=splot[i];
i++;
}
swide[j]=sum;
swide[j]=nbpp*ss;
}
// Time according to this computer