mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-09-02 21:27:52 -04:00
Adjust zero in 2d spectrum.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/jtms3@2511 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
81be088180
commit
4822c93fba
@ -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"
|
||||||
|
@ -145,7 +145,7 @@ void CPlotter::draw(float green[], int ig) //draw()
|
|||||||
y1 = 5.0*gain*(y + 20 - m_plotZero);
|
y1 = 5.0*gain*(y + 20 - m_plotZero);
|
||||||
} else {
|
} else {
|
||||||
y=10.0*log10(std::max(mscom_.s1[2*i-1],mscom_.s1[2*i]));
|
y=10.0*log10(std::max(mscom_.s1[2*i-1],mscom_.s1[2*i]));
|
||||||
y1 = 5.0*gain*(y + 55 - m_plotZero);
|
y1 = 5.0*gain*(y + 51 - m_plotZero);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
y1=0;
|
y1=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user