mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
If Hold Tx Freq is unchecked, randomize Fox's Tx Freq in the range 300-600 Hz.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8448 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
ec644ae5f6
commit
d4e8e413c7
@ -900,7 +900,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
connect (&splashTimer, &QTimer::timeout, this, &MainWindow::splash_done);
|
||||
splashTimer.setSingleShot (true);
|
||||
splashTimer.start (20 * 1000);
|
||||
|
||||
/*
|
||||
if(m_config.my_callsign()=="K1JT" or m_config.my_callsign()=="K9AN" or
|
||||
m_config.my_callsign()=="G4WJS" || m_config.my_callsign () == "W9XYZ" or
|
||||
m_config.my_callsign()=="K1ABC" or m_config.my_callsign()=="K1ABC/2" or
|
||||
@ -914,7 +914,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
"Please use WSJT-X v1.8.0\n", errorMsg);
|
||||
Q_EMIT finished ();
|
||||
}
|
||||
|
||||
*/
|
||||
if(!ui->cbMenus->isChecked()) {
|
||||
ui->cbMenus->setChecked(true);
|
||||
ui->cbMenus->setChecked(false);
|
||||
@ -3259,6 +3259,13 @@ void MainWindow::guiUpdate()
|
||||
if(m_mode=="FT8" and m_config.bFox() and ui->TxFreqSpinBox->value() > 900) {
|
||||
ui->TxFreqSpinBox->setValue(300);
|
||||
}
|
||||
|
||||
// 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 ?
|
||||
if(m_mode=="FT8" and m_config.bFox() and !ui->cbHoldTxFreq->isChecked()) {
|
||||
int fTx = 300.0 + 300.0*double(qrand())/RAND_MAX;
|
||||
ui->TxFreqSpinBox->setValue(fTx);
|
||||
}
|
||||
if(m_mode=="FT8" and m_config.bHound() and (ui->TxFreqSpinBox->value() < 999) and
|
||||
m_ntx != 3) {
|
||||
int nf = (qrand() % 2000) + 1000; // Hound randomized range: 1000-3000 Hz
|
||||
|
Loading…
Reference in New Issue
Block a user