Add UTC to WSPR Tx dividing line; add WSPR Rx dividing line when no decodes;

increase ranges of Gaiz/Zero sliders on Echo Graph.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5605 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2015-06-13 14:24:54 +00:00
parent 2b671dbd2e
commit d64fb9826e
3 changed files with 27 additions and 9 deletions

View File

@ -118,10 +118,10 @@
<item>
<widget class="QSlider" name="gainSlider">
<property name="minimum">
<number>-20</number>
<number>-30</number>
</property>
<property name="maximum">
<number>20</number>
<number>30</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
@ -154,7 +154,7 @@
<item>
<widget class="QSlider" name="zeroSlider">
<property name="minimum">
<number>-50</number>
<number>-150</number>
</property>
<property name="maximum">
<number>150</number>

View File

@ -2147,7 +2147,8 @@ void MainWindow::guiUpdate()
if(m_auto and m_mode=="Echo" and m_bEchoTxOK) progressBar->setValue(
int(100*m_s6/6.0));
if(nsec != m_sec0) { //Once per second
//Once per second:
if(nsec != m_sec0) {
if(m_mode!="Echo") {
int ipct=0;
if(m_monitoring or m_transmitting) ipct=int(100*m_nseq/txDuration);
@ -2221,7 +2222,8 @@ void MainWindow::startTx2()
if (m_config.TX_messages ()) {
t = " Transmitting " + m_mode + " ----------------------- " +
m_config.bands ()->find (m_dialFreq);
ui->decodedTextBrowser->appendText(t.rightJustified (71, '-'));
t=WSPR_hhmm(0) + ' ' + t.rightJustified (66, '-');
ui->decodedTextBrowser->appendText(t);
}
QFile f {m_dataDir.absoluteFilePath ("ALL_WSPR.TXT")};
@ -4099,7 +4101,15 @@ void MainWindow::p1ReadFromStdout() //p1readFromStdout
while(p1.canReadLine()) {
QString t(p1.readLine());
if(t.indexOf("<DecodeFinished>") >= 0) {
if(!m_diskData) WSPR_history(m_dialFreqRxWSPR, m_nWSPRdecodes);
if(!m_diskData) {
WSPR_history(m_dialFreqRxWSPR, m_nWSPRdecodes);
if(m_nWSPRdecodes==0) {
t = " Receiving " + m_mode + " ----------------------- " +
m_config.bands ()->find (m_dialFreqRxWSPR);
t=WSPR_hhmm(-60) + ' ' + t.rightJustified (66, '-');
ui->decodedTextBrowser->appendText(t);
}
}
m_nWSPRdecodes=0;
ui->DecodeButton->setChecked (false);
if(m_uploadSpots) {
@ -4188,13 +4198,20 @@ void MainWindow::p1ReadFromStdout() //p1readFromStdout
}
}
QString MainWindow::WSPR_hhmm(int n)
{
QDateTime t=QDateTime::currentDateTimeUtc().addSecs(n);
int m=t.toString("hhmm").toInt()/2;
QString t1;
t1.sprintf("%04d",2*m);
return t1;
}
void MainWindow::WSPR_history(Frequency dialFreq, int ndecodes)
{
QDateTime t=QDateTime::currentDateTimeUtc().addSecs(-60);
QString t1=t.toString("yyMMdd");
QString t2=t.toString("hhmm");
int n=t2.toInt()/2;
t2.sprintf("%04d",2*n);
QString t2=WSPR_hhmm(-60);
QString t3;
t3.sprintf("%13.6f",0.000001*dialFreq);
if(ndecodes<0) {

View File

@ -512,6 +512,7 @@ private:
void WSPR_scheduling ();
void astroCalculations (QDateTime const&, bool adjust);
void WSPR_history(Frequency dialFreq, int ndecodes);
QString WSPR_hhmm(int n);
};
extern void getfile(QString fname, int ntrperiod);