mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 21:40:52 -05:00 
			
		
		
		
	Add Tsec to displayed data for Echo mode.
This commit is contained in:
		
							parent
							
								
									14a3ba02f2
								
							
						
					
					
						commit
						eb8fba2598
					
				@ -1619,15 +1619,20 @@ void MainWindow::dataSink(qint64 frames)
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if(m_monitoring or m_auto or m_diskData) {
 | 
					      if(m_monitoring or m_auto or m_diskData) {
 | 
				
			||||||
        QString t;
 | 
					 | 
				
			||||||
        t = t.asprintf("%5.2f %7d %7.1f %7d %7d %7d %7.1f %7.1f",xlevel,nDopTotal,width,echocom_.nsum,
 | 
					 | 
				
			||||||
                       nqual,qRound(dfreq),sigdb,dBerr);
 | 
					 | 
				
			||||||
        QString t0;
 | 
					        QString t0;
 | 
				
			||||||
        if(m_diskData) {
 | 
					        if(m_diskData) {
 | 
				
			||||||
          t0=t0.asprintf("%06d  ",m_UTCdisk);
 | 
					          t0=t0.asprintf("%06d  ",m_UTCdisk);
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          t0=QDateTime::currentDateTimeUtc().toString("hhmmss  ");
 | 
					          t0=QDateTime::currentDateTimeUtc().toString("hhmmss  ");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        int n=t0.toInt();
 | 
				
			||||||
 | 
					        int nsec=((n/10000)*3600) + (((n/100)%100)*60) + (n%100);
 | 
				
			||||||
 | 
					        if(!m_echoRunning) m_echoSec0=nsec;
 | 
				
			||||||
 | 
					        n=(nsec-m_echoSec0 + 864000)%86400;
 | 
				
			||||||
 | 
					        m_echoRunning=true;
 | 
				
			||||||
 | 
					        QString t;
 | 
				
			||||||
 | 
					        t = t.asprintf("%6d  %5.2f %7d %7.1f %7d %7d %7d %7.1f %7.1f",n,xlevel,
 | 
				
			||||||
 | 
					                       nDopTotal,width,echocom_.nsum,nqual,qRound(dfreq),sigdb,dBerr);
 | 
				
			||||||
        t = t0 + t;
 | 
					        t = t0 + t;
 | 
				
			||||||
        if (ui) ui->decodedTextBrowser->appendText(t);
 | 
					        if (ui) ui->decodedTextBrowser->appendText(t);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
@ -2013,6 +2018,7 @@ void MainWindow::on_monitorButton_clicked (bool checked)
 | 
				
			|||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    ui->monitorButton->setChecked (false); // disallow
 | 
					    ui->monitorButton->setChecked (false); // disallow
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  if(m_mode=="Echo") m_echoRunning=false;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MainWindow::monitor (bool state)
 | 
					void MainWindow::monitor (bool state)
 | 
				
			||||||
@ -2050,6 +2056,7 @@ void MainWindow::on_autoButton_clicked (bool checked)
 | 
				
			|||||||
    echocom_.nsum=0;
 | 
					    echocom_.nsum=0;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  m_tAutoOn=QDateTime::currentMSecsSinceEpoch()/1000;
 | 
					  m_tAutoOn=QDateTime::currentMSecsSinceEpoch()/1000;
 | 
				
			||||||
 | 
					  if(m_mode=="Echo") m_echoRunning=false;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MainWindow::on_sbTxPercent_valueChanged (int n)
 | 
					void MainWindow::on_sbTxPercent_valueChanged (int n)
 | 
				
			||||||
@ -4707,6 +4714,7 @@ void MainWindow::guiUpdate()
 | 
				
			|||||||
      ui->txb1->setEnabled(true);
 | 
					      ui->txb1->setEnabled(true);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  if(m_mode=="Echo" and !m_monitoring and !m_auto and !m_diskData) m_echoRunning=false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//Once per second (onesec)
 | 
					//Once per second (onesec)
 | 
				
			||||||
  if(nsec != m_sec0) {
 | 
					  if(nsec != m_sec0) {
 | 
				
			||||||
@ -7107,7 +7115,7 @@ void MainWindow::on_actionEcho_triggered()
 | 
				
			|||||||
  m_bFastMode=false;
 | 
					  m_bFastMode=false;
 | 
				
			||||||
  m_bFast9=false;
 | 
					  m_bFast9=false;
 | 
				
			||||||
  WSPR_config(true);
 | 
					  WSPR_config(true);
 | 
				
			||||||
  ui->lh_decodes_headings_label->setText("  UTC   Level  Doppler  Width       N       Q      DF    SNR    dBerr");
 | 
					  ui->lh_decodes_headings_label->setText("  UTC     Tsec  Level  Doppler  Width       N       Q      DF    SNR    dBerr");
 | 
				
			||||||
  //                       01234567890123456789012345678901234567
 | 
					  //                       01234567890123456789012345678901234567
 | 
				
			||||||
  displayWidgets(nWidgets("00000000000000000010001000000000000000"));
 | 
					  displayWidgets(nWidgets("00000000000000000010001000000000000000"));
 | 
				
			||||||
  fast_config(false);
 | 
					  fast_config(false);
 | 
				
			||||||
 | 
				
			|||||||
@ -507,6 +507,7 @@ private:
 | 
				
			|||||||
  qint32  m_points=-99;
 | 
					  qint32  m_points=-99;
 | 
				
			||||||
  qint32  m_score=0;
 | 
					  qint32  m_score=0;
 | 
				
			||||||
  qint32  m_fDop=0;
 | 
					  qint32  m_fDop=0;
 | 
				
			||||||
 | 
					  qint32  m_echoSec0=0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  bool    m_btxok;		//True if OK to transmit
 | 
					  bool    m_btxok;		//True if OK to transmit
 | 
				
			||||||
  bool    m_diskData;
 | 
					  bool    m_diskData;
 | 
				
			||||||
@ -736,7 +737,8 @@ private:
 | 
				
			|||||||
  QThread::Priority m_audioThreadPriority;
 | 
					  QThread::Priority m_audioThreadPriority;
 | 
				
			||||||
  bool m_bandEdited;
 | 
					  bool m_bandEdited;
 | 
				
			||||||
  bool m_splitMode;
 | 
					  bool m_splitMode;
 | 
				
			||||||
  bool m_monitoring;
 | 
					  bool m_monitoring=false;
 | 
				
			||||||
 | 
					  bool m_echoRunning=false;
 | 
				
			||||||
  bool m_tx_when_ready;
 | 
					  bool m_tx_when_ready;
 | 
				
			||||||
  bool m_transmitting;
 | 
					  bool m_transmitting;
 | 
				
			||||||
  bool m_tune;
 | 
					  bool m_tune;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user