From dd8f28b30921134f559f05a1d7525f7ba9cdfe21 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 21 Apr 2018 19:10:16 +0000 Subject: [PATCH] Tentative reversal of recent change to set hound Tx frequency very late Changing the Hound Tx audio offset just before starting the Tx audio stream is way too late to have the Tx message printed in the decodes window with the correct frequency shown. If we intend to change the Tx offset very late like this we are going to be in trouble with rigs that cannot do CAT while transmitting since PTT will already be asserted. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8627 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 28 +++++++++++++++++----------- mainwindow.h | 1 + 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index f8fd49c1a..b24db2e8b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2981,6 +2981,7 @@ void MainWindow::readFromStdout() //readFromStdout ui->txrb3->setChecked(true); m_nFoxFreq=decodedtext.string().mid(16,4).toInt(); m_nSentFoxRrpt=1; + hound_QSY (); if(!m_auto) auto_tx_mode(true); } } else { @@ -3001,6 +3002,7 @@ void MainWindow::readFromStdout() //readFromStdout ui->txrb3->setChecked(true); m_nFoxFreq=decodedtext.string().mid(16,4).toInt(); m_nSentFoxRrpt=1; + hound_QSY (); if(!m_auto) auto_tx_mode(true); } } @@ -6167,17 +6169,6 @@ void MainWindow::transmit (double snr) if(m_config.x2ToneSpacing()) toneSpacing=2*12000.0/1920.0; if(m_config.x4ToneSpacing()) toneSpacing=4*12000.0/1920.0; if(m_config.bFox() and !m_tune) toneSpacing=-1; - if(m_config.bHound() and !m_tune) { - if(m_ntx==1) m_nSentFoxRrpt=1; - if(m_ntx==3) { - if(m_nSentFoxRrpt==1) { - ui->TxFreqSpinBox->setValue(m_nFoxFreq); - } else { - ui->TxFreqSpinBox->setValue(m_nFoxFreq+300); - } - m_nSentFoxRrpt++; - } - } Q_EMIT sendMessage (NUM_FT8_SYMBOLS, 1920.0, ui->TxFreqSpinBox->value () - m_XIT, toneSpacing, m_soundOutput, m_config.audio_output_channel (), @@ -7276,6 +7267,21 @@ void MainWindow::write_transmit_entry (QString const& file_name) // -------------------------- Code for FT8 DXpedition Mode --------------------------- +void MainWindow::hound_QSY () +{ + if(m_config.bHound() and !m_tune) { + if(m_ntx==1) m_nSentFoxRrpt=1; + if(m_ntx==3) { + if(m_nSentFoxRrpt==1) { + ui->TxFreqSpinBox->setValue(m_nFoxFreq); + } else { + ui->TxFreqSpinBox->setValue(m_nFoxFreq+300); + } + m_nSentFoxRrpt++; + } + } +} + void MainWindow::on_sbNlist_valueChanged(int n) { m_Nlist=n; diff --git a/mainwindow.h b/mainwindow.h index 86db2a274..df4cd5b2c 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -683,6 +683,7 @@ private: , Frequency frequency , QString const& his_call , QString const& his_grid) const; + void hound_QSY (); QString sortHoundCalls(QString t, int isort, int max_dB); void rm_tb4(QString houndCall); void read_wav_file (QString const& fname);