mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-30 05:12:26 -04:00
Implement round-robin scheduling for FST240W mode.
This commit is contained in:
parent
f17a07953e
commit
b9e92c416f
@ -4078,7 +4078,7 @@ void MainWindow::guiUpdate()
|
|||||||
|
|
||||||
//Once per second:
|
//Once per second:
|
||||||
if(nsec != m_sec0) {
|
if(nsec != m_sec0) {
|
||||||
// qDebug() << "onesec" << m_mode;
|
// qDebug() << "onesec" << ui->RoundRobin->currentText();
|
||||||
m_currentBand=m_config.bands()->find(m_freqNominal);
|
m_currentBand=m_config.bands()->find(m_freqNominal);
|
||||||
if( SpecOp::HOUND == m_config.special_op_id() ) {
|
if( SpecOp::HOUND == m_config.special_op_id() ) {
|
||||||
qint32 tHound=QDateTime::currentMSecsSinceEpoch()/1000 - m_tAutoOn;
|
qint32 tHound=QDateTime::currentMSecsSinceEpoch()/1000 - m_tAutoOn;
|
||||||
@ -5844,7 +5844,7 @@ void MainWindow::on_actionFST240W_triggered()
|
|||||||
m_TRperiod = ui->sbTR_FST240W->value ();
|
m_TRperiod = ui->sbTR_FST240W->value ();
|
||||||
ui->band_hopping_group_box->setVisible(false);
|
ui->band_hopping_group_box->setVisible(false);
|
||||||
int ntr=m_TRperiod;
|
int ntr=m_TRperiod;
|
||||||
ui->sbTR_FST240W->setMinimum(15); //### 120 ?? ###
|
ui->sbTR_FST240W->setMinimum(15);
|
||||||
ui->sbTR_FST240W->setMaximum(300);
|
ui->sbTR_FST240W->setMaximum(300);
|
||||||
ui->sbTR_FST240W->setValue(120); //### Why is all this necessary? ###
|
ui->sbTR_FST240W->setValue(120); //### Why is all this necessary? ###
|
||||||
ui->sbTR_FST240W->setValue(300);
|
ui->sbTR_FST240W->setValue(300);
|
||||||
@ -7899,6 +7899,18 @@ void MainWindow::on_pbTxNext_clicked(bool b)
|
|||||||
|
|
||||||
void MainWindow::WSPR_scheduling ()
|
void MainWindow::WSPR_scheduling ()
|
||||||
{
|
{
|
||||||
|
QString t=ui->RoundRobin->currentText();
|
||||||
|
if(m_mode=="FST240W" and t!="Random") {
|
||||||
|
int i=t.left(1).toInt();
|
||||||
|
int n=t.right(1).toInt();
|
||||||
|
|
||||||
|
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
|
||||||
|
int nsec=ms/1000;
|
||||||
|
int ntr=m_TRperiod;
|
||||||
|
int j=(nsec % (n*ntr))/ntr + 1;
|
||||||
|
m_WSPR_tx_next=(i==j);
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_WSPR_tx_next = false;
|
m_WSPR_tx_next = false;
|
||||||
if (m_config.is_transceiver_online () // need working rig control for hopping
|
if (m_config.is_transceiver_online () // need working rig control for hopping
|
||||||
&& !m_config.is_dummy_rig ()
|
&& !m_config.is_dummy_rig ()
|
||||||
|
@ -2631,6 +2631,43 @@ list. The list can be maintained in Settings (F2).</string>
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="RoundRobin">
|
||||||
|
<property name="currentIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Random</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>1/2</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>2/2</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>1/3</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>2/3</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>3/3</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -2876,7 +2913,6 @@ list. The list can be maintained in Settings (F2).</string>
|
|||||||
<addaction name="actionMSK144"/>
|
<addaction name="actionMSK144"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionWSPR"/>
|
<addaction name="actionWSPR"/>
|
||||||
<addaction name="actionWSPR_LF"/>
|
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionEcho"/>
|
<addaction name="actionEcho"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user