mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
Fix horizontal scale of cumulative 2d spectrum.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3037 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
5bb9603ea2
commit
2e92af10c3
@ -1,4 +1,4 @@
|
|||||||
//------------------------------------------------------------ MainWindow
|
//------------------------------------------------------------- MainWindow
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "ui_mainwindow.h"
|
#include "ui_mainwindow.h"
|
||||||
#include "devsetup.h"
|
#include "devsetup.h"
|
||||||
|
@ -122,7 +122,14 @@ void CPlotter::draw(float swide[], float red[], int i0) //draw()
|
|||||||
painter1.drawPoint(i,0);
|
painter1.drawPoint(i,0);
|
||||||
y2=0;
|
y2=0;
|
||||||
if(m_bCurrent) y2 = 0.4*gain*y - 15;
|
if(m_bCurrent) y2 = 0.4*gain*y - 15;
|
||||||
if(m_bCumulative) y2=1.5*gain*10.0*log10(jt9com_.savg[i]) - 20;
|
if(m_bCumulative) {
|
||||||
|
float sum=0.0;
|
||||||
|
int j=m_binsPerPixel*i;
|
||||||
|
for(int k=0; k<m_binsPerPixel; k++) {
|
||||||
|
sum+=jt9com_.savg[j++];
|
||||||
|
}
|
||||||
|
y2=gain*10.0*log10(sum/m_binsPerPixel) - 20;
|
||||||
|
}
|
||||||
if(m_bJT9Sync) y2=3.0*gain*red[i] - 15;
|
if(m_bJT9Sync) y2=3.0*gain*red[i] - 15;
|
||||||
if(strong != strong0 or i==m_w-1) {
|
if(strong != strong0 or i==m_w-1) {
|
||||||
painter2D.drawPolyline(LineBuf,j);
|
painter2D.drawPolyline(LineBuf,j);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[Setup]
|
[Setup]
|
||||||
AppName=wsjtx
|
AppName=wsjtx
|
||||||
AppVerName=wsjtx Version 0.5 r3026
|
AppVerName=wsjtx Version 0.5 r3032
|
||||||
AppCopyright=Copyright (C) 2001-2013 by Joe Taylor, K1JT
|
AppCopyright=Copyright (C) 2001-2013 by Joe Taylor, K1JT
|
||||||
DefaultDirName=c:\wsjtx
|
DefaultDirName=c:\wsjtx
|
||||||
DefaultGroupName=wsjtx
|
DefaultGroupName=wsjtx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user