SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
dsddemodgui.cpp
Go to the documentation of this file.
1 // Copyright (C) 2016 F4EXB //
3 // written by Edouard Griffiths //
4 // //
5 // This program is free software; you can redistribute it and/or modify //
6 // it under the terms of the GNU General Public License as published by //
7 // the Free Software Foundation as version 3 of the License, or //
8 // (at your option) any later version. //
9 // //
10 // This program is distributed in the hope that it will be useful, //
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
13 // GNU General Public License V3 for more details. //
14 // //
15 // You should have received a copy of the GNU General Public License //
16 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
18 
19 #include "dsddemodgui.h"
20 
21 #include "device/deviceuiset.h"
22 #include "dsp/downchannelizer.h"
23 
25 #include "ui_dsddemodgui.h"
26 #include "dsp/scopevisxy.h"
27 #include "plugin/pluginapi.h"
28 #include "util/simpleserializer.h"
29 #include "util/db.h"
31 #include "gui/crightclickenabler.h"
32 #include "gui/audioselectdialog.h"
33 #include "dsp/dspengine.h"
34 #include "mainwindow.h"
35 
36 #include "dsddemodbaudrates.h"
37 #include "dsddemod.h"
38 
39 #include <QDockWidget>
40 #include <QMainWindow>
41 #include <QDebug>
42 
43 #include <complex>
44 
46 {
47  DSDDemodGUI* gui = new DSDDemodGUI(pluginAPI, deviceUISet, rxChannel);
48  return gui;
49 }
50 
52 {
53  delete this;
54 }
55 
56 void DSDDemodGUI::setName(const QString& name)
57 {
58  setObjectName(name);
59 }
60 
61 QString DSDDemodGUI::getName() const
62 {
63  return objectName();
64 }
65 
67 {
69 }
70 
71 void DSDDemodGUI::setCenterFrequency(qint64 centerFrequency)
72 {
73  m_channelMarker.setCenterFrequency(centerFrequency);
74  applySettings();
75 }
76 
78 {
80  blockApplySettings(true);
82  blockApplySettings(false);
83  applySettings();
84 }
85 
86 QByteArray DSDDemodGUI::serialize() const
87 {
88  return m_settings.serialize();
89 }
90 
91 bool DSDDemodGUI::deserialize(const QByteArray& data)
92 {
93  if (m_settings.deserialize(data))
94  {
96  applySettings(true);
97  return true;
98  }
99  else
100  {
101  resetToDefaults();
102  return false;
103  }
104 }
105 
107 {
109  {
110  qDebug("DSDDemodGUI::handleMessage: DSDDemod::MsgConfigureDSDDemod");
112  m_settings = cfg.getSettings();
113  blockApplySettings(true);
114  displaySettings();
115  blockApplySettings(false);
116  return true;
117  }
118  else
119  {
120  return false;
121  }
122 }
123 
125 {
126  Message* message;
127 
128  while ((message = getInputMessageQueue()->pop()) != 0)
129  {
130  if (handleMessage(*message))
131  {
132  delete message;
133  }
134  }
135 }
136 
138 {
141  applySettings();
142 }
143 
145 {
146  m_channelMarker.setBandwidth(value * 100);
147  m_settings.m_rfBandwidth = value * 100.0;
148  ui->rfBWText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1));
149  applySettings();
150 }
151 
153 {
154  m_settings.m_demodGain = value / 100.0;
155  ui->demodGainText->setText(QString("%1").arg(value / 100.0, 0, 'f', 2));
156  applySettings();
157 }
158 
160 {
161  m_settings.m_fmDeviation = value * 100.0;
162  ui->fmDeviationText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(value / 10.0, 0, 'f', 1));
163  applySettings();
164 }
165 
167 {
168  m_settings.m_volume= value / 10.0;
169  ui->volumeText->setText(QString("%1").arg(value / 10.0, 0, 'f', 1));
170  applySettings();
171 }
172 
174 {
176  applySettings();
177 }
178 
180 {
182  applySettings();
183 }
184 
186 {
188  applySettings();
189 }
190 
192 {
194  ui->traceLengthText->setText(QString("%1").arg(m_settings.m_traceLengthMutliplier*50));
195  m_scopeVisXY->setPixelsPerFrame(m_settings.m_traceLengthMutliplier*960); // 48000 / 50. Chunks of 50 ms.
196 }
197 
199 {
200  m_settings.m_traceStroke = value;
201  ui->traceStrokeText->setText(QString("%1").arg(m_settings.m_traceStroke));
203 }
204 
206 {
207  m_settings.m_traceDecay = value;
208  ui->traceDecayText->setText(QString("%1").arg(m_settings.m_traceDecay));
210 }
211 
213 {
214  m_settings.m_slot1On = checked;
215  applySettings();
216 }
217 
219 {
220  m_settings.m_slot2On = checked;
221  applySettings();
222 }
223 
225 {
226  m_settings.m_tdmaStereo = checked;
227  applySettings();
228 }
229 
231 {
232  m_settings.m_squelchGate = value;
233  ui->squelchGateText->setText(QString("%1").arg(value * 10.0, 0, 'f', 0));
234  applySettings();
235 }
236 
238 {
239  ui->squelchText->setText(QString("%1").arg(value / 1.0, 0, 'f', 0));
240  m_settings.m_squelch = value;
241  applySettings();
242 }
243 
245 {
246  m_settings.m_audioMute = checked;
247  applySettings();
248 }
249 
251 {
252  m_settings.m_highPassFilter = checked;
253  applySettings();
254 }
255 
257 {
258  if (checked) {
259  ui->symbolPLLLock->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
260  } else {
261  ui->symbolPLLLock->setStyleSheet("QToolButton { background:rgb(53,53,53); }");
262  }
263  m_settings.m_pllLock = checked;
264  applySettings();
265 }
266 
267 void DSDDemodGUI::onWidgetRolled(QWidget* widget, bool rollDown)
268 {
269  (void) widget;
270  (void) rollDown;
271 }
272 
273 void DSDDemodGUI::onMenuDialogCalled(const QPoint &p)
274 {
276  {
283 
284  dialog.move(p);
285  dialog.exec();
286 
295 
296  setWindowTitle(m_settings.m_title);
298 
299  applySettings();
300  }
301 
303 }
304 
306 {
307  qDebug("DSDDemodGUI::on_viewStatusLog_clicked");
308  m_dsdStatusTextDialog.exec();
309 }
310 
311 DSDDemodGUI::DSDDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget* parent) :
312  RollupWidget(parent),
313  ui(new Ui::DSDDemodGUI),
314  m_pluginAPI(pluginAPI),
315  m_deviceUISet(deviceUISet),
316  m_channelMarker(this),
317  m_doApplySettings(true),
319  m_syncOrConstellation(false),
320  m_slot1On(false),
321  m_slot2On(false),
322  m_tdmaStereo(false),
323  m_squelchOpen(false),
324  m_tickCount(0),
326 {
327  ui->setupUi(this);
328  ui->screenTV->setColor(true);
329  ui->screenTV->resizeTVScreen(200,200);
330  setAttribute(Qt::WA_DeleteOnClose, true);
331 
332  connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
333  connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &)));
334  connect(getInputMessageQueue(), SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
335 
336  CRightClickEnabler *audioMuteRightClickEnabler = new CRightClickEnabler(ui->audioMute);
337  connect(audioMuteRightClickEnabler, SIGNAL(rightClick(const QPoint &)), this, SLOT(audioSelect()));
338 
339  m_scopeVisXY = new ScopeVisXY(ui->screenTV);
340  m_scopeVisXY->setScale(2.0);
342  m_scopeVisXY->setPlotRGB(qRgb(0, 220, 250));
343  m_scopeVisXY->setGridRGB(qRgb(255, 255, 128));
344 
345  for (float x = -0.84; x < 1.0; x += 0.56)
346  {
347  for (float y = -0.84; y < 1.0; y += 0.56)
348  {
349  m_scopeVisXY->addGraticulePoint(std::complex<float>(x, y));
350  }
351  }
352 
354 
355  m_dsdDemod = (DSDDemod*) rxChannel; //new DSDDemod(m_deviceUISet->m_deviceSourceAPI);
358 
359  connect(&MainWindow::getInstance()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick()));
360 
361  ui->audioMute->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
362 
363  ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
364  ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
365  ui->deltaFrequency->setValueRange(false, 7, -9999999, 9999999);
366  ui->channelPowerMeter->setColorTheme(LevelMeterSignalDB::ColorGreenAndBlue);
367 
368  m_channelMarker.blockSignals(true);
369  m_channelMarker.setColor(Qt::cyan);
372  m_channelMarker.setTitle("DSD Demodulator");
373  m_channelMarker.blockSignals(false);
374  m_channelMarker.setVisible(true); // activate signal on the last setting only
375 
379 
380  connect(&m_channelMarker, SIGNAL(changedByCursor()), this, SLOT(channelMarkerChangedByCursor()));
381  connect(&m_channelMarker, SIGNAL(highlightedByCursor()), this, SLOT(channelMarkerHighlightedByCursor()));
382 
384 
386  displaySettings();
387  applySettings(true);
388 }
389 
391 {
393  delete m_dsdDemod; // TODO: check this: when the GUI closes it has to delete the demodulator
394  delete m_scopeVisXY;
395  delete ui;
396 }
397 
399 {
400  float latitude = MainWindow::getInstance()->getMainSettings().getLatitude();
401  float longitude = MainWindow::getInstance()->getMainSettings().getLongitude();
402 
403  if ((m_myLatitude != latitude) || (m_myLongitude != longitude))
404  {
406  m_myLatitude = latitude;
407  m_myLongitude = longitude;
408  }
409 }
410 
412 {
413  m_channelMarker.blockSignals(true);
417  m_channelMarker.blockSignals(false);
418  setTitleColor(m_settings.m_rgbColor); // activate signal on the last setting only
419 
421  setWindowTitle(m_channelMarker.getTitle());
422 
423  blockApplySettings(true);
424 
425  ui->deltaFrequency->setValue(m_channelMarker.getCenterFrequency());
426 
427  ui->rfBW->setValue(m_settings.m_rfBandwidth / 100.0);
428  ui->rfBWText->setText(QString("%1k").arg(ui->rfBW->value() / 10.0, 0, 'f', 1));
429 
430  ui->fmDeviation->setValue(m_settings.m_fmDeviation / 100.0);
431  ui->fmDeviationText->setText(QString("%1%2k").arg(QChar(0xB1, 0x00)).arg(ui->fmDeviation->value() / 10.0, 0, 'f', 1));
432 
433  ui->squelch->setValue(m_settings.m_squelch);
434  ui->squelchText->setText(QString("%1").arg(ui->squelch->value() / 1.0, 0, 'f', 0));
435 
436  ui->squelchGate->setValue(m_settings.m_squelchGate);
437  ui->squelchGateText->setText(QString("%1").arg(ui->squelchGate->value() * 10.0, 0, 'f', 0));
438 
439  ui->demodGain->setValue(m_settings.m_demodGain * 100.0);
440  ui->demodGainText->setText(QString("%1").arg(ui->demodGain->value() / 100.0, 0, 'f', 2));
441 
442  ui->volume->setValue(m_settings.m_volume * 10.0);
443  ui->volumeText->setText(QString("%1").arg(ui->volume->value() / 10.0, 0, 'f', 1));
444 
445  ui->enableCosineFiltering->setChecked(m_settings.m_enableCosineFiltering);
446  ui->syncOrConstellation->setChecked(m_settings.m_syncOrConstellation);
447  ui->slot1On->setChecked(m_settings.m_slot1On);
448  ui->slot2On->setChecked(m_settings.m_slot2On);
449  ui->tdmaStereoSplit->setChecked(m_settings.m_tdmaStereo);
450  ui->audioMute->setChecked(m_settings.m_audioMute);
451  ui->symbolPLLLock->setChecked(m_settings.m_pllLock);
452  ui->highPassFilter->setChecked(m_settings.m_highPassFilter);
453 
454  ui->baudRate->setCurrentIndex(DSDDemodBaudRates::getRateIndex(m_settings.m_baudRate));
455 
456  ui->traceLength->setValue(m_settings.m_traceLengthMutliplier);
457  ui->traceLengthText->setText(QString("%1").arg(m_settings.m_traceLengthMutliplier*50));
458  m_scopeVisXY->setPixelsPerFrame(m_settings.m_traceLengthMutliplier*960); // 48000 / 50. Chunks of 50 ms.
459 
460  ui->traceStroke->setValue(m_settings.m_traceStroke);
461  ui->traceStrokeText->setText(QString("%1").arg(m_settings.m_traceStroke));
463 
464  ui->traceDecay->setValue(m_settings.m_traceDecay);
465  ui->traceDecayText->setText(QString("%1").arg(m_settings.m_traceDecay));
467 
468  blockApplySettings(false);
469 }
470 
472 {
473  if (m_doApplySettings)
474  {
475  qDebug() << "DSDDemodGUI::applySettings";
476 
479  m_dsdDemod->getInputMessageQueue()->push(channelConfigMsg);
480 
482  m_dsdDemod->getInputMessageQueue()->push(message);
483  }
484 }
485 
487 {
489 }
490 
492 {
494 }
495 
497 {
498  m_doApplySettings = !block;
499 }
500 
502 {
503  ui->deltaFrequency->setValue(m_channelMarker.getCenterFrequency());
505  applySettings();
506 }
507 
509 {
511 }
512 
514 {
515  qDebug("DSDDemodGUI::audioSelect");
517  audioSelect.exec();
518 
519  if (audioSelect.m_selected)
520  {
522  applySettings();
523  }
524 }
525 
527 {
528  double magsqAvg, magsqPeak;
529  int nbMagsqSamples;
530  m_dsdDemod->getMagSqLevels(magsqAvg, magsqPeak, nbMagsqSamples);
531  double powDbAvg = CalcDb::dbPower(magsqAvg);
532  double powDbPeak = CalcDb::dbPower(magsqPeak);
533 
534  ui->channelPowerMeter->levelChanged(
535  (100.0f + powDbAvg) / 100.0f,
536  (100.0f + powDbPeak) / 100.0f,
537  nbMagsqSamples);
538 
539  if (m_tickCount % 4 == 0) {
540  ui->channelPower->setText(tr("%1 dB").arg(powDbAvg, 0, 'f', 1));
541  }
542 
543  bool squelchOpen = m_dsdDemod->getSquelchOpen();
544 
545  if (squelchOpen != m_squelchOpen)
546  {
547  if (squelchOpen) {
548  ui->audioMute->setStyleSheet("QToolButton { background-color : green; }");
549  } else {
550  ui->audioMute->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
551  }
552 
553  m_squelchOpen = squelchOpen;
554  }
555 
556  // "slow" updates
557 
558  if (m_tickCount % 10 == 0)
559  {
560  ui->inLevelText->setText(QString::number(m_dsdDemod->getDecoder().getInLevel()));
561  ui->inCarrierPosText->setText(QString::number(m_dsdDemod->getDecoder().getCarrierPos()));
562  ui->zcPosText->setText(QString::number(m_dsdDemod->getDecoder().getZeroCrossingPos()));
563  ui->symbolSyncQualityText->setText(QString::number(m_dsdDemod->getDecoder().getSymbolSyncQuality()));
564 
565  if (m_dsdDemod->getDecoder().getVoice1On()) {
566  ui->slot1On->setStyleSheet("QToolButton { background-color : green; }");
567  } else {
568  ui->slot1On->setStyleSheet("QToolButton { background-color : rgb(79,79,79); }");
569  }
570 
571  if (m_dsdDemod->getDecoder().getVoice2On()) {
572  ui->slot2On->setStyleSheet("QToolButton { background-color : green; }");
573  } else {
574  ui->slot2On->setStyleSheet("QToolButton { background-color : rgb(79,79,79); }");
575  }
576 
577  const char *frameTypeText = m_dsdDemod->getDecoder().getFrameTypeText();
578 
579  if (frameTypeText[0] == '\0') {
580  ui->syncText->setStyleSheet("QLabel { background:rgb(53,53,53); }"); // turn off background
581  } else {
582  ui->syncText->setStyleSheet("QLabel { background:rgb(37,53,39); }"); // turn on background
583  }
584 
585  ui->syncText->setText(QString(frameTypeText));
586 
587  const char *formatStatusText = m_dsdDemod->updateAndGetStatusText();
588  ui->formatStatusText->setText(QString(formatStatusText));
589 
590  if (ui->activateStatusLog->isChecked()) {
591  m_dsdStatusTextDialog.addLine(QString(formatStatusText));
592  }
593 
594  if (formatStatusText[0] == '\0') {
595  ui->formatStatusText->setStyleSheet("QLabel { background:rgb(53,53,53); }"); // turn off background
596  } else {
597  ui->formatStatusText->setStyleSheet("QLabel { background:rgb(37,53,39); }"); // turn on background
598  }
599 
600  if (m_squelchOpen && ui->symbolPLLLock->isChecked() && m_dsdDemod->getDecoder().getSymbolPLLLocked()) {
601  ui->symbolPLLLock->setStyleSheet("QToolButton { background-color : green; }");
602  } else {
603  ui->symbolPLLLock->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
604  }
605  }
606 
607  m_tickCount++;
608 }
QString getName() const
Definition: dsddemodgui.cpp:61
float getLatitude() const
Definition: mainsettings.h:55
static MainWindow * getInstance()
Definition: mainwindow.h:73
float m_myLatitude
Definition: dsddemodgui.h:96
const QString & getReverseAPIAddress() const
QByteArray serialize() const
int getCenterFrequency() const
Definition: channelmarker.h:42
bool m_enableCosineFiltering
Definition: dsddemodgui.h:87
void getMagSqLevels(double &avg, double &peak, int &nbSamples)
Definition: dsddemod.h:133
void push(Message *message, bool emitSignal=true)
Push message onto queue.
void setChannelMarker(Serializable *channelMarker)
static double dbPower(double magsq, double floor=1e-12)
Definition: db.cpp:22
void resetToDefaults()
Definition: dsddemodgui.cpp:77
MessageQueue * getInputMessageQueue()
Get the queue for asynchronous inbound communication.
static const QString m_channelIdURI
Definition: dsddemod.h:167
void onMenuDialogCalled(const QPoint &p)
bool m_syncOrConstellation
Definition: dsddemodgui.h:88
float m_myLongitude
Definition: dsddemodgui.h:97
void channelMarkerHighlightedByCursor()
virtual ~DSDDemodGUI()
DSDDemodGUI(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget *parent=0)
void on_deltaFrequency_changed(qint64 value)
static unsigned int getRateIndex(unsigned int rate)
Ui::DSDDemodGUI * ui
Definition: dsddemodgui.h:77
void setName(const QString &name)
Definition: dsddemodgui.cpp:56
virtual void destroy()
Definition: dsddemodgui.cpp:51
DSDDemodSettings m_settings
Definition: dsddemodgui.h:81
void setReverseAPIChannelIndex(uint16_t channelIndex)
const MainSettings & getMainSettings() const
Definition: mainwindow.h:83
int getCarrierPos() const
Definition: dsddecoder.h:57
void resetContextMenuType()
Definition: rollupwidget.h:50
void addChannelMarker(ChannelMarker *channelMarker)
Add channel marker to spectrum.
Definition: deviceuiset.cpp:72
QByteArray serialize() const
Definition: dsddemodgui.cpp:86
qint64 m_inputFrequencyOffset
void on_traceStroke_valueChanged(int value)
int getSymbolSyncQuality() const
Definition: dsddecoder.h:59
void setScopeXYSink(BasebandSampleSink *sampleSink)
Definition: dsddemod.h:102
void onWidgetRolled(QWidget *widget, bool rollDown)
const char * getFrameTypeText() const
Definition: dsddecoder.h:64
void on_squelchGate_valueChanged(int value)
ContextMenuType m_contextMenuType
Definition: rollupwidget.h:33
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
Definition: fixed.h:2401
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
void channelMarkerChangedByCursor()
uint16_t m_reverseAPIDeviceIndex
void on_demodGain_valueChanged(int value)
void on_enableCosineFiltering_toggled(bool enable)
void on_slot1On_toggled(bool checked)
bool m_squelchOpen
Definition: dsddemodgui.h:93
void on_highPassFilter_toggled(bool checked)
void setStroke(int stroke)
Definition: scopevisxy.h:43
void blockApplySettings(bool block)
void on_slot2On_toggled(bool checked)
virtual bool handleMessage(const Message &message)
void on_traceLength_valueChanged(int value)
virtual void setMessageQueueToGUI(MessageQueue *queue)
static DSPEngine * instance()
Definition: dspengine.cpp:51
void enterEvent(QEvent *)
virtual qint64 getCenterFrequency() const
Definition: dsddemodgui.cpp:66
bool getSquelchOpen() const
Definition: dsddemod.h:129
void setTitleColor(const QColor &c)
void setHighlighted(bool highlighted)
void setPixelsPerFrame(int pixelsPerFrame)
Definition: scopevisxy.cpp:46
uint16_t m_reverseAPIPort
void registerRxChannelInstance(const QString &channelName, PluginInstanceGUI *pluginGUI)
Definition: deviceuiset.cpp:82
void on_audioMute_toggled(bool checked)
void updateMyPosition()
void addRollupWidget(QWidget *widget)
Add rollup widget to channel window.
Definition: deviceuiset.cpp:77
void removeRxChannelInstance(PluginInstanceGUI *pluginGUI)
Definition: deviceuiset.cpp:94
bool deserialize(const QByteArray &data)
const QString & getTitle() const
Definition: channelmarker.h:38
static bool match(const Message *message)
Definition: message.cpp:45
void on_rfBW_valueChanged(int index)
bool getHighlighted() const
Definition: channelmarker.h:61
void on_baudRate_currentIndexChanged(int index)
void leaveEvent(QEvent *)
float getLongitude() const
Definition: mainsettings.h:56
void on_fmDeviation_valueChanged(int value)
void on_volume_valueChanged(int value)
int getZeroCrossingPos() const
Definition: dsddecoder.h:58
void configureMyPosition(MessageQueue *messageQueue, float myLatitude, float myLongitude)
Definition: dsddemod.cpp:119
const DSDDemodSettings & getSettings() const
Definition: dsddemod.h:57
DeviceUISet * m_deviceUISet
Definition: dsddemodgui.h:79
ChannelMarker m_channelMarker
Definition: dsddemodgui.h:80
void setReverseAPIAddress(const QString &address)
void setHighlighted(bool highlighted)
virtual void setCenterFrequency(qint64 centerFrequency)
Definition: dsddemodgui.cpp:71
bool getVoice2On() const
Definition: dsddecoder.h:50
bool getSymbolPLLLocked() const
Definition: dsddecoder.h:52
void setColor(const QColor &color)
const char * updateAndGetStatusText()
Definition: dsddemod.cpp:641
bool getVoice1On() const
Definition: dsddecoder.h:49
void on_viewStatusLog_clicked()
void setDecay(int decay)
Definition: scopevisxy.h:44
bool m_tdmaStereo
Definition: dsddemodgui.h:91
static DSDDemodGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
Definition: dsddemodgui.cpp:45
void on_tdmaStereoSplit_toggled(bool checked)
void applySettings(bool force=false)
void setVisible(bool visible)
DSDDemod * m_dsdDemod
Definition: dsddemodgui.h:86
uint16_t m_reverseAPIChannelIndex
void displaySettings()
void setBandwidth(int bandwidth)
static MsgConfigureChannelizer * create(int sampleRate, int centerFrequency)
Definition: dsddemod.h:83
const QColor & getColor() const
Definition: channelmarker.h:64
void setScale(float scale)
Definition: scopevisxy.h:42
void setTitle(const QString &title)
void on_syncOrConstellation_toggled(bool checked)
bool m_doApplySettings
Definition: dsddemodgui.h:82
int getInLevel() const
Definition: dsddecoder.h:56
virtual MessageQueue * getInputMessageQueue()
Definition: dsddemodgui.h:60
void addLine(const QString &line)
void setCenterFrequency(int centerFrequency)
void addGraticulePoint(const std::complex< float > &z)
Definition: scopevisxy.cpp:111
PluginAPI * m_pluginAPI
Definition: dsddemodgui.h:78
bool m_slot2On
Definition: dsddemodgui.h:90
const DSDDecoder & getDecoder() const
Definition: dsddemod.h:131
void on_symbolPLLLock_toggled(bool checked)
void audioSelect()
QString m_reverseAPIAddress
void widgetRolled(QWidget *widget, bool rollDown)
static unsigned int getRate(unsigned int rate_index)
uint32_t m_tickCount
Definition: dsddemodgui.h:94
void setUseReverseAPI(bool useReverseAPI)
void calculateGraticule(int rows, int cols)
Definition: scopevisxy.cpp:119
bool deserialize(const QByteArray &data)
Definition: dsddemodgui.cpp:91
void handleInputMessages()
void setGridRGB(const QRgb &gridRGB)
Definition: scopevisxy.h:48
static MsgConfigureDSDDemod * create(const DSDDemodSettings &settings, bool force)
Definition: dsddemod.h:60
void on_squelch_valueChanged(int value)
DSDStatusTextDialog m_dsdStatusTextDialog
Definition: dsddemodgui.h:101
bool m_slot1On
Definition: dsddemodgui.h:89
void setPlotRGB(const QRgb &plotRGB)
Definition: scopevisxy.h:47
ScopeVisXY * m_scopeVisXY
Definition: dsddemodgui.h:84
void on_traceDecay_valueChanged(int value)