Do not set split Tx frequency when rig changes frequency.

WSJT-X was attempting to set the split Tx frequency when a dial change
from the rig is detected. Because of the way some rigs and rig servers
report the Tx frequency  while the rig is in Tx  mode this was causing
the rig  to "walk" along the  band. Setting of split  Tx frequency has
been limited to WSJT-X initiated instances only.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4350 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2014-09-24 17:25:28 +00:00
parent 4a32b0bef6
commit 30b50ff9e2

View File

@ -837,33 +837,35 @@ void MainWindow::bumpFqso(int n) //bumpFqso()
void MainWindow::qsy (Frequency f)
{
if (m_monitoring || m_transmitting)
if (!m_transmitting)
{
m_lastMonitoredFrequency = f;
}
if (m_dialFreq != f)
{
m_dialFreq = f;
setXIT(ui->TxFreqSpinBox->value ());
m_repeatMsg=0;
m_secBandChanged=QDateTime::currentMSecsSinceEpoch()/1000;
QFile f2(m_config.data_path ().absoluteFilePath ("ALL.TXT"));
f2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
QTextStream out(&f2);
out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm")
<< " " << (m_dialFreq / 1.e6) << " MHz " << m_mode << endl;
f2.close();
if (m_config.spot_to_psk_reporter ())
if (m_monitoring)
{
pskSetLocal ();
m_lastMonitoredFrequency = f;
}
displayDialFrequency ();
statusChanged();
m_wideGraph->setDialFreq(m_dialFreq / 1.e6);
if (m_dialFreq != f)
{
m_dialFreq = f;
m_repeatMsg=0;
m_secBandChanged=QDateTime::currentMSecsSinceEpoch()/1000;
QFile f2(m_config.data_path ().absoluteFilePath ("ALL.TXT"));
f2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
QTextStream out(&f2);
out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm")
<< " " << (m_dialFreq / 1.e6) << " MHz " << m_mode << endl;
f2.close();
if (m_config.spot_to_psk_reporter ())
{
pskSetLocal ();
}
displayDialFrequency ();
statusChanged();
m_wideGraph->setDialFreq(m_dialFreq / 1.e6);
}
}
}
@ -2512,6 +2514,7 @@ void MainWindow::band_changed (Frequency f)
Q_EMIT m_config.transceiver_frequency (f);
qsy (f);
setXIT (ui->TxFreqSpinBox->value ());
}
}