Insert red line on waterfall to mark an FT4 transmission.

This commit is contained in:
Joe Taylor 2019-01-28 13:50:23 -05:00
parent 7da4fc63a6
commit 2e4035c8bb
4 changed files with 6 additions and 4 deletions

View File

@ -4036,7 +4036,8 @@ void MainWindow::stopTx2()
on_stopTxButton_clicked ();
m_nTx73 = 0;
}
if(m_mode.startsWith ("WSPR") and m_ntr==-1 and !m_tuneup) {
if(((m_mode.startsWith("WSPR") and m_ntr==-1) or m_mode=="FT4") and
!m_tuneup) {
m_wideGraph->setWSPRtransmitted();
WSPR_scheduling ();
m_ntr=0;

View File

@ -166,7 +166,7 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed)
ymin=1.e30;
if(swide[0]>1.e29 and swide[0]< 1.5e30) painter1.setPen(Qt::green);
if(swide[0]>1.4e30) painter1.setPen(Qt::yellow);
if(swide[0]>1.4e30) painter1.setPen(Qt::red);
if(!m_bReplot) {
m_j=0;
int irow=-1;

View File

@ -187,7 +187,8 @@ void WideGraph::dataSink2(float s[], float df3, int ihsym, int ndiskdata) //dat
// Time according to this computer
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
int ntr = (ms/1000) % m_TRperiod;
if((ndiskdata && ihsym <= m_waterfallAvg) || (!ndiskdata && ntr<m_ntr0)) {
if((ndiskdata && ihsym <= m_waterfallAvg) || (!ndiskdata &&
(ntr<m_ntr0 || (m_mode=="FT4" and m_bHaveTransmitted)))) {
float flagValue=1.0e30;
if(m_bHaveTransmitted) flagValue=2.0e30;
for(int i=0; i<MAX_SCREENSIZE; i++) {

View File

@ -108,7 +108,7 @@ private:
bool m_bFlatten;
bool m_bRef;
bool m_bHaveTransmitted; //Set true at end of a WSPR transmission
bool m_bHaveTransmitted; //Set true at end of a WSPR or FT4 transmission
QString m_rxBand;
QString m_mode;