Clean up compiler warnings.

Better definition of "red()" for waterfall plot.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2729 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2012-11-14 17:02:54 +00:00
parent 3285497494
commit 6012a0c7a0
10 changed files with 15 additions and 80 deletions
+1 -15
View File
@@ -87,13 +87,8 @@ void WideGraph::dataSink2(float s[], float red[], float df3, int ihsym,
{
static float splot[NSMAX];
static float swide[2048];
float smax;
// double df;
int nbpp = ui->widePlot->binsPerPixel();
static int n=0;
static int nkhz0=-999;
// df = 12000.0/m_nsps;
//Average spectra over specified number, m_waterfallAvg
if (n==0) {
@@ -110,20 +105,11 @@ void WideGraph::dataSink2(float s[], float red[], float df3, int ihsym,
splot[i] /= n; //Normalize the average
n=0;
int w=ui->widePlot->plotWidth();
// int w=ui->widePlot->plotWidth();
int i0=0; //###
int i=i0;
int jz=1000.0/df3;
for (int j=0; j<jz; j++) {
/*
smax=0;
for (int k=0; k<nbpp; k++) {
if(splot[i]>smax) smax=splot[i];
i++;
}
swide[j]=smax;
*/
float sum=0;
for (int k=0; k<nbpp; k++) {
i++;