mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-10 06:22:15 -05:00
Fix Hound logic for automatic audio offset changes
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8628 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
dd8f28b309
commit
e2181935ea
@ -3315,9 +3315,26 @@ void MainWindow::guiUpdate()
|
|||||||
icw[0]=m_ncw;
|
icw[0]=m_ncw;
|
||||||
g_iptt = 1;
|
g_iptt = 1;
|
||||||
setRig ();
|
setRig ();
|
||||||
if(m_mode=="FT8" and m_config.bFox() and ui->TxFreqSpinBox->value() > 900) {
|
if(m_mode=="FT8") {
|
||||||
ui->TxFreqSpinBox->setValue(300);
|
if (m_config.bFox() and ui->TxFreqSpinBox->value() > 900) {
|
||||||
|
ui->TxFreqSpinBox->setValue(300);
|
||||||
|
}
|
||||||
|
if (m_config.bHound ()) {
|
||||||
|
if(m_auto && !m_tune) {
|
||||||
|
if (ui->TxFreqSpinBox->value() < 999 && m_ntx != 3) {
|
||||||
|
int nf = (qrand() % 2000) + 1000; // Hound randomized range: 1000-3000 Hz
|
||||||
|
ui->TxFreqSpinBox->setValue(nf);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (m_nSentFoxRrpt == 2) {
|
||||||
|
ui->TxFreqSpinBox->setValue(m_nFoxFreq+300);
|
||||||
|
}
|
||||||
|
if (m_nSentFoxRrpt == 1) {
|
||||||
|
++m_nSentFoxRrpt;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// If HoldTxFreq is not checked, randomize Fox's Tx Freq
|
// If HoldTxFreq is not checked, randomize Fox's Tx Freq
|
||||||
// NB: Maybe this should be done no more than once every 5 minutes or so ?
|
// NB: Maybe this should be done no more than once every 5 minutes or so ?
|
||||||
@ -3325,11 +3342,6 @@ void MainWindow::guiUpdate()
|
|||||||
int fTx = 300.0 + 300.0*double(qrand())/RAND_MAX;
|
int fTx = 300.0 + 300.0*double(qrand())/RAND_MAX;
|
||||||
ui->TxFreqSpinBox->setValue(fTx);
|
ui->TxFreqSpinBox->setValue(fTx);
|
||||||
}
|
}
|
||||||
if(m_mode=="FT8" and m_config.bHound() and !m_tune and
|
|
||||||
(ui->TxFreqSpinBox->value() < 999) and m_ntx != 3) {
|
|
||||||
int nf = (qrand() % 2000) + 1000; // Hound randomized range: 1000-3000 Hz
|
|
||||||
ui->TxFreqSpinBox->setValue(nf);
|
|
||||||
}
|
|
||||||
|
|
||||||
setXIT (ui->TxFreqSpinBox->value ());
|
setXIT (ui->TxFreqSpinBox->value ());
|
||||||
Q_EMIT m_config.transceiver_ptt (true); //Assert the PTT
|
Q_EMIT m_config.transceiver_ptt (true); //Assert the PTT
|
||||||
@ -7269,15 +7281,9 @@ void MainWindow::write_transmit_entry (QString const& file_name)
|
|||||||
|
|
||||||
void MainWindow::hound_QSY ()
|
void MainWindow::hound_QSY ()
|
||||||
{
|
{
|
||||||
if(m_config.bHound() and !m_tune) {
|
if(m_auto && !m_tune) {
|
||||||
if(m_ntx==1) m_nSentFoxRrpt=1;
|
if (m_ntx==3 && m_nSentFoxRrpt==1) {
|
||||||
if(m_ntx==3) {
|
ui->TxFreqSpinBox->setValue(m_nFoxFreq);
|
||||||
if(m_nSentFoxRrpt==1) {
|
|
||||||
ui->TxFreqSpinBox->setValue(m_nFoxFreq);
|
|
||||||
} else {
|
|
||||||
ui->TxFreqSpinBox->setValue(m_nFoxFreq+300);
|
|
||||||
}
|
|
||||||
m_nSentFoxRrpt++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user