mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-21 03:28:59 -04:00
Correct the "warbling" Echo tone after doing a JT9-fast transmission.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7211 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
e87d9a572b
commit
f698c7b77d
@ -47,8 +47,7 @@ void Modulator::start (unsigned symbolsLength, double framesPerSymbol,
|
||||
bool synchronize, bool fastMode, double dBSNR, int TRperiod)
|
||||
{
|
||||
Q_ASSERT (stream);
|
||||
|
||||
// Time according to this computer which becomes our base time
|
||||
// Time according to this computer which becomes our base time
|
||||
qint64 ms0 = QDateTime::currentMSecsSinceEpoch() % 86400000;
|
||||
|
||||
if (m_state != Idle)
|
||||
@ -166,6 +165,7 @@ qint64 Modulator::readData (char * data, qint64 maxSize)
|
||||
unsigned int isym=0;
|
||||
if(!m_tuning) isym=m_ic/(4.0*m_nsps); // Actual fsample=48000
|
||||
bool slowCwId=((isym >= m_symbolsLength) && (icw[0] > 0)) && (!m_bFastMode);
|
||||
if(m_TRperiod==3) slowCwId=false;
|
||||
bool fastCwId=false;
|
||||
static bool bCwId=false;
|
||||
qint64 ms = QDateTime::currentMSecsSinceEpoch();
|
||||
@ -218,7 +218,6 @@ qint64 Modulator::readData (char * data, qint64 maxSize)
|
||||
}
|
||||
m_cwLevel = level;
|
||||
}
|
||||
|
||||
return framesGenerated * bytesPerFrame ();
|
||||
} else {
|
||||
bCwId=false;
|
||||
@ -241,7 +240,7 @@ qint64 Modulator::readData (char * data, qint64 maxSize)
|
||||
|
||||
for (unsigned i = 0; i < numFrames && m_ic <= i1; ++i) {
|
||||
isym=0;
|
||||
if(!m_tuning) isym=m_ic / (4.0 * m_nsps); //Actual fsample=48000
|
||||
if(!m_tuning and m_TRperiod!=3) isym=m_ic / (4.0 * m_nsps); //Actual fsample=48000
|
||||
if(m_bFastMode) isym=isym%m_symbolsLength;
|
||||
if (isym != m_isym0 || m_frequency != m_frequency0) {
|
||||
if(itone[0]>=100) {
|
||||
|
@ -3912,7 +3912,7 @@ void MainWindow::acceptQSO2(QDateTime const& QSO_date, QString const& call, QStr
|
||||
|
||||
int MainWindow::nWidgets(QString t)
|
||||
{
|
||||
if(t.length()!=19) qDebug() << "b" << t << t.length();
|
||||
// if(t.length()!=19) qDebug() << "b" << t << t.length();
|
||||
int n=0;
|
||||
for(int i=0; i<19; i++) {
|
||||
n=n + n + t.mid(i,1).toInt();
|
||||
|
Loading…
Reference in New Issue
Block a user