mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-23 18:02:29 -04:00
Exclude Rx only bands from WSPR band hopping random selections
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5564 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
6f9c9b8072
commit
7672bb27b5
@ -348,10 +348,12 @@ auto WSPRBandHopping::next_hop () -> Hop
|
|||||||
// target_bands.removeOne (band);
|
// target_bands.removeOne (band);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// remove bands that are not enabled for hopping
|
|
||||||
for (auto i = 0; i < m_->bands_[period_index].size (); ++i)
|
for (auto i = 0; i < m_->bands_[period_index].size (); ++i)
|
||||||
{
|
{
|
||||||
if (!m_->bands_[period_index].testBit (i))
|
// remove bands that are not enabled for hopping in this phase
|
||||||
|
if (!m_->bands_[period_index].testBit (i)
|
||||||
|
// remove Rx only bands if we are wanting to transmit
|
||||||
|
|| (tx_next && m_->bands_[5].testBit (i)))
|
||||||
{
|
{
|
||||||
target_bands.removeOne (bands->data (bands->index (i, 0)).toString ());
|
target_bands.removeOne (bands->data (bands->index (i, 0)).toString ());
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,7 @@ MainWindow::MainWindow(bool multiple, QSettings * settings, QSharedMemory *shdme
|
|||||||
m_detector (RX_SAMPLE_RATE, NTMAX, 6912 / 2, downSampleFactor),
|
m_detector (RX_SAMPLE_RATE, NTMAX, 6912 / 2, downSampleFactor),
|
||||||
m_modulator (TX_SAMPLE_RATE, NTMAX),
|
m_modulator (TX_SAMPLE_RATE, NTMAX),
|
||||||
m_audioThread {new QThread},
|
m_audioThread {new QThread},
|
||||||
|
m_XIT {0},
|
||||||
m_pctx {0},
|
m_pctx {0},
|
||||||
m_diskData {false},
|
m_diskData {false},
|
||||||
m_sentFirst73 {false},
|
m_sentFirst73 {false},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user