mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-24 11:40:31 -05:00
Allow Fox to transmit standard FT8 messages (including free text) from Tab 1 or Tab 2.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8658 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
95e20b2e52
commit
c1ca43da3e
@ -3482,6 +3482,16 @@ void MainWindow::guiUpdate()
|
|||||||
char ft8msgbits[75 + 12]; //packed 75 bit ft8 message plus 12-bit CRC
|
char ft8msgbits[75 + 12]; //packed 75 bit ft8 message plus 12-bit CRC
|
||||||
genft8_(message, MyGrid, &bcontest, &m_i3bit, msgsent, const_cast<char *> (ft8msgbits),
|
genft8_(message, MyGrid, &bcontest, &m_i3bit, msgsent, const_cast<char *> (ft8msgbits),
|
||||||
const_cast<int *> (itone), 22, 6, 22);
|
const_cast<int *> (itone), 22, 6, 22);
|
||||||
|
if(m_config.bFox()) {
|
||||||
|
QString fm = QString::fromStdString(message).trimmed();
|
||||||
|
foxGenWaveform(0,fm);
|
||||||
|
foxcom_.nslots=1;
|
||||||
|
foxcom_.nfreq=ui->TxFreqSpinBox->value();
|
||||||
|
if(m_config.split_mode()) foxcom_.nfreq = foxcom_.nfreq - m_XIT; //Fox Tx freq
|
||||||
|
QString foxCall=m_config.my_callsign() + " ";
|
||||||
|
strncpy(&foxcom_.mycall[0], foxCall.toLatin1(),12); //Copy Fox callsign into foxcom_
|
||||||
|
foxgen_();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7752,7 +7762,6 @@ Transmit:
|
|||||||
if(m_config.split_mode()) foxcom_.nfreq = foxcom_.nfreq - m_XIT; //Fox Tx freq
|
if(m_config.split_mode()) foxcom_.nfreq = foxcom_.nfreq - m_XIT; //Fox Tx freq
|
||||||
QString foxCall=m_config.my_callsign() + " ";
|
QString foxCall=m_config.my_callsign() + " ";
|
||||||
strncpy(&foxcom_.mycall[0], foxCall.toLatin1(),12); //Copy Fox callsign into foxcom_
|
strncpy(&foxcom_.mycall[0], foxCall.toLatin1(),12); //Copy Fox callsign into foxcom_
|
||||||
// qDebug() << "bb" << islot << foxcom_.nslots << foxcom_.nfreq << foxCall;
|
|
||||||
foxgen_();
|
foxgen_();
|
||||||
m_tFoxTxSinceCQ++;
|
m_tFoxTxSinceCQ++;
|
||||||
|
|
||||||
@ -7820,8 +7829,6 @@ void MainWindow::doubleClickOnFoxQueue(Qt::KeyboardModifiers modifiers)
|
|||||||
|
|
||||||
void MainWindow::foxGenWaveform(int i,QString fm)
|
void MainWindow::foxGenWaveform(int i,QString fm)
|
||||||
{
|
{
|
||||||
// if(i==0) qDebug() << "";
|
|
||||||
// qDebug() << m_tFoxTx << "Tx" << i << fm;
|
|
||||||
//Generate and accumulate the Tx waveform
|
//Generate and accumulate the Tx waveform
|
||||||
fm += " ";
|
fm += " ";
|
||||||
fm=fm.mid(0,40);
|
fm=fm.mid(0,40);
|
||||||
|
Loading…
Reference in New Issue
Block a user