mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Make the names of functions setPeriod(), setTRperiod(), consistent. Fix a bug when initializing FastGraph. Tnx W9MDB.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8504 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
3366442596
commit
de143aa276
@ -24,7 +24,7 @@ public:
|
|||||||
//
|
//
|
||||||
Detector (unsigned frameRate, unsigned periodLengthInSeconds, unsigned downSampleFactor = 4u, QObject * parent = 0);
|
Detector (unsigned frameRate, unsigned periodLengthInSeconds, unsigned downSampleFactor = 4u, QObject * parent = 0);
|
||||||
|
|
||||||
void setPeriod(unsigned p) {m_period=p;}
|
void setTRPeriod(unsigned p) {m_period=p;}
|
||||||
bool reset () override;
|
bool reset () override;
|
||||||
|
|
||||||
Q_SIGNAL void framesWritten (qint64) const;
|
Q_SIGNAL void framesWritten (qint64) const;
|
||||||
|
@ -31,7 +31,7 @@ public:
|
|||||||
double frequency () const {return m_frequency;}
|
double frequency () const {return m_frequency;}
|
||||||
bool isActive () const {return m_state != Idle;}
|
bool isActive () const {return m_state != Idle;}
|
||||||
void setSpread(double s) {m_fSpread=s;}
|
void setSpread(double s) {m_fSpread=s;}
|
||||||
void setPeriod(unsigned p) {m_period=p;}
|
void setTRPeriod(unsigned p) {m_period=p;}
|
||||||
void set_nsym(int n) {m_symbolsLength=n;}
|
void set_nsym(int n) {m_symbolsLength=n;}
|
||||||
|
|
||||||
Q_SLOT void start (unsigned symbolsLength, double framesPerSymbol, double frequency,
|
Q_SLOT void start (unsigned symbolsLength, double framesPerSymbol, double frequency,
|
||||||
|
@ -85,7 +85,7 @@ void FastGraph::on_greenZeroSlider_valueChanged(int value)
|
|||||||
ui->fastPlot->draw();
|
ui->fastPlot->draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FastGraph::setTRperiod(int n)
|
void FastGraph::setTRPeriod(int n)
|
||||||
{
|
{
|
||||||
m_TRperiod=n;
|
m_TRperiod=n;
|
||||||
ui->fastPlot->setTRperiod(m_TRperiod);
|
ui->fastPlot->setTRperiod(m_TRperiod);
|
||||||
|
@ -20,7 +20,7 @@ public:
|
|||||||
|
|
||||||
void plotSpec(bool diskData, int UTCdisk);
|
void plotSpec(bool diskData, int UTCdisk);
|
||||||
void saveSettings();
|
void saveSettings();
|
||||||
void setTRperiod(int n);
|
void setTRPeriod(int n);
|
||||||
void setMode(QString mode);
|
void setMode(QString mode);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
@ -4962,8 +4962,8 @@ void MainWindow::on_actionFT8_triggered()
|
|||||||
m_wideGraph->show();
|
m_wideGraph->show();
|
||||||
ui->decodedTextLabel2->setText(" UTC dB DT Freq Message");
|
ui->decodedTextLabel2->setText(" UTC dB DT Freq Message");
|
||||||
m_wideGraph->setPeriod(m_TRperiod,m_nsps);
|
m_wideGraph->setPeriod(m_TRperiod,m_nsps);
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
ui->label_7->setText("Rx Frequency");
|
ui->label_7->setText("Rx Frequency");
|
||||||
if(m_config.bFox()) {
|
if(m_config.bFox()) {
|
||||||
ui->label_6->setText("Stations calling DXpedition " + m_config.my_callsign());
|
ui->label_6->setText("Stations calling DXpedition " + m_config.my_callsign());
|
||||||
@ -5036,8 +5036,8 @@ void MainWindow::on_actionJT4_triggered()
|
|||||||
switch_mode (Modes::JT4);
|
switch_mode (Modes::JT4);
|
||||||
m_modeTx="JT4";
|
m_modeTx="JT4";
|
||||||
m_TRperiod=60;
|
m_TRperiod=60;
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_nsps=6912; //For symspec only
|
m_nsps=6912; //For symspec only
|
||||||
m_FFTSize = m_nsps / 2;
|
m_FFTSize = m_nsps / 2;
|
||||||
Q_EMIT FFTSize (m_FFTSize);
|
Q_EMIT FFTSize (m_FFTSize);
|
||||||
@ -5113,8 +5113,8 @@ void MainWindow::on_actionJT9_triggered()
|
|||||||
ui->decodedTextLabel2->setText("UTC dB DT Freq Message");
|
ui->decodedTextLabel2->setText("UTC dB DT Freq Message");
|
||||||
}
|
}
|
||||||
m_wideGraph->setPeriod(m_TRperiod,m_nsps);
|
m_wideGraph->setPeriod(m_TRperiod,m_nsps);
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
ui->label_6->setText("Band Activity");
|
ui->label_6->setText("Band Activity");
|
||||||
ui->label_7->setText("Rx Frequency");
|
ui->label_7->setText("Rx Frequency");
|
||||||
if(bVHF) {
|
if(bVHF) {
|
||||||
@ -5138,8 +5138,8 @@ void MainWindow::on_actionJT9_JT65_triggered()
|
|||||||
}
|
}
|
||||||
m_nSubMode=0; //Dual-mode always means JT9 and JT65A
|
m_nSubMode=0; //Dual-mode always means JT9 and JT65A
|
||||||
m_TRperiod=60;
|
m_TRperiod=60;
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_nsps=6912;
|
m_nsps=6912;
|
||||||
m_FFTSize = m_nsps / 2;
|
m_FFTSize = m_nsps / 2;
|
||||||
Q_EMIT FFTSize (m_FFTSize);
|
Q_EMIT FFTSize (m_FFTSize);
|
||||||
@ -5179,8 +5179,8 @@ void MainWindow::on_actionJT65_triggered()
|
|||||||
switch_mode (Modes::JT65);
|
switch_mode (Modes::JT65);
|
||||||
if(m_modeTx!="JT65") on_pbTxMode_clicked();
|
if(m_modeTx!="JT65") on_pbTxMode_clicked();
|
||||||
m_TRperiod=60;
|
m_TRperiod=60;
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_nsps=6912; //For symspec only
|
m_nsps=6912; //For symspec only
|
||||||
m_FFTSize = m_nsps / 2;
|
m_FFTSize = m_nsps / 2;
|
||||||
Q_EMIT FFTSize (m_FFTSize);
|
Q_EMIT FFTSize (m_FFTSize);
|
||||||
@ -5250,8 +5250,8 @@ void MainWindow::on_actionISCAT_triggered()
|
|||||||
m_modeTx="ISCAT";
|
m_modeTx="ISCAT";
|
||||||
ui->actionISCAT->setChecked(true);
|
ui->actionISCAT->setChecked(true);
|
||||||
m_TRperiod = ui->sbTR->value ();
|
m_TRperiod = ui->sbTR->value ();
|
||||||
m_modulator->setPeriod(m_TRperiod);
|
m_modulator->setTRPeriod(m_TRperiod);
|
||||||
m_detector->setPeriod(m_TRperiod);
|
m_detector->setTRPeriod(m_TRperiod);
|
||||||
m_wideGraph->setPeriod(m_TRperiod,m_nsps);
|
m_wideGraph->setPeriod(m_TRperiod,m_nsps);
|
||||||
m_nsps=6912; //For symspec only
|
m_nsps=6912; //For symspec only
|
||||||
m_FFTSize = m_nsps / 2;
|
m_FFTSize = m_nsps / 2;
|
||||||
@ -5306,9 +5306,9 @@ void MainWindow::on_actionMSK144_triggered()
|
|||||||
ui->RxFreqSpinBox->setSingleStep(10);
|
ui->RxFreqSpinBox->setSingleStep(10);
|
||||||
ui->decodedTextLabel->setText("UTC dB T Freq Message");
|
ui->decodedTextLabel->setText("UTC dB T Freq Message");
|
||||||
ui->decodedTextLabel2->setText("UTC dB T Freq Message");
|
ui->decodedTextLabel2->setText("UTC dB T Freq Message");
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_wideGraph->setPeriod(m_TRperiod,m_nsps);
|
m_fastGraph->setTRPeriod(m_TRperiod);
|
||||||
ui->label_6->setText("Band Activity");
|
ui->label_6->setText("Band Activity");
|
||||||
ui->label_7->setText("Tx Messages");
|
ui->label_7->setText("Tx Messages");
|
||||||
ui->actionMSK144->setChecked(true);
|
ui->actionMSK144->setChecked(true);
|
||||||
@ -5329,8 +5329,8 @@ void MainWindow::on_actionWSPR_triggered()
|
|||||||
switch_mode (Modes::WSPR);
|
switch_mode (Modes::WSPR);
|
||||||
m_modeTx="WSPR";
|
m_modeTx="WSPR";
|
||||||
m_TRperiod=120;
|
m_TRperiod=120;
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_nsps=6912; //For symspec only
|
m_nsps=6912; //For symspec only
|
||||||
m_FFTSize = m_nsps / 2;
|
m_FFTSize = m_nsps / 2;
|
||||||
Q_EMIT FFTSize (m_FFTSize);
|
Q_EMIT FFTSize (m_FFTSize);
|
||||||
@ -5357,8 +5357,8 @@ void MainWindow::on_actionWSPR_LF_triggered()
|
|||||||
switch_mode (Modes::WSPR);
|
switch_mode (Modes::WSPR);
|
||||||
m_modeTx="WSPR-LF";
|
m_modeTx="WSPR-LF";
|
||||||
m_TRperiod=240;
|
m_TRperiod=240;
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_hsymStop=813;
|
m_hsymStop=813;
|
||||||
m_toneSpacing=12000.0/24576.0;
|
m_toneSpacing=12000.0/24576.0;
|
||||||
setup_status_bar (false);
|
setup_status_bar (false);
|
||||||
@ -5373,8 +5373,8 @@ void MainWindow::on_actionEcho_triggered()
|
|||||||
m_mode="Echo";
|
m_mode="Echo";
|
||||||
ui->actionEcho->setChecked(true);
|
ui->actionEcho->setChecked(true);
|
||||||
m_TRperiod=3;
|
m_TRperiod=3;
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_nsps=6912; //For symspec only
|
m_nsps=6912; //For symspec only
|
||||||
m_FFTSize = m_nsps / 2;
|
m_FFTSize = m_nsps / 2;
|
||||||
Q_EMIT FFTSize (m_FFTSize);
|
Q_EMIT FFTSize (m_FFTSize);
|
||||||
@ -5408,8 +5408,8 @@ void MainWindow::on_actionFreqCal_triggered()
|
|||||||
switch_mode(Modes::FreqCal);
|
switch_mode(Modes::FreqCal);
|
||||||
m_wideGraph->setMode(m_mode);
|
m_wideGraph->setMode(m_mode);
|
||||||
m_TRperiod = ui->sbTR->value ();
|
m_TRperiod = ui->sbTR->value ();
|
||||||
m_modulator->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_modulator->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_detector->setPeriod(m_TRperiod); // TODO - not thread safe
|
m_detector->setTRPeriod(m_TRperiod); // TODO - not thread safe
|
||||||
m_nsps=6912; //For symspec only
|
m_nsps=6912; //For symspec only
|
||||||
m_FFTSize = m_nsps / 2;
|
m_FFTSize = m_nsps / 2;
|
||||||
Q_EMIT FFTSize (m_FFTSize);
|
Q_EMIT FFTSize (m_FFTSize);
|
||||||
@ -6383,9 +6383,9 @@ void MainWindow::on_sbTR_valueChanged(int value)
|
|||||||
// if(!m_bFastMode and n>m_nSubMode) m_MinW=m_nSubMode;
|
// if(!m_bFastMode and n>m_nSubMode) m_MinW=m_nSubMode;
|
||||||
if(m_bFastMode or m_mode=="FreqCal") {
|
if(m_bFastMode or m_mode=="FreqCal") {
|
||||||
m_TRperiod = value;
|
m_TRperiod = value;
|
||||||
m_fastGraph->setTRperiod (value);
|
m_fastGraph->setTRPeriod (value);
|
||||||
m_modulator->setPeriod (value); // TODO - not thread safe
|
m_modulator->setTRPeriod (value); // TODO - not thread safe
|
||||||
m_detector->setPeriod (value); // TODO - not thread safe
|
m_detector->setTRPeriod (value); // TODO - not thread safe
|
||||||
m_wideGraph->setPeriod (value, m_nsps);
|
m_wideGraph->setPeriod (value, m_nsps);
|
||||||
progressBar.setMaximum (value);
|
progressBar.setMaximum (value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user