mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-30 22:02:26 -04:00
M17 mod: removed scope XY
This commit is contained in:
parent
55f49f0398
commit
6015fce33d
@ -38,6 +38,7 @@ class QThread;
|
|||||||
class DeviceAPI;
|
class DeviceAPI;
|
||||||
class M17ModBaseband;
|
class M17ModBaseband;
|
||||||
class ObjectPipe;
|
class ObjectPipe;
|
||||||
|
class BasebandSampleSink;
|
||||||
|
|
||||||
class M17Mod : public BasebandSampleSource, public ChannelAPI {
|
class M17Mod : public BasebandSampleSource, public ChannelAPI {
|
||||||
public:
|
public:
|
||||||
|
@ -438,25 +438,6 @@ M17ModGUI::M17ModGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSam
|
|||||||
connect(rollupContents, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
connect(rollupContents, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
||||||
connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &)));
|
connect(this, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(onMenuDialogCalled(const QPoint &)));
|
||||||
|
|
||||||
ui->screenTV->setColor(true);
|
|
||||||
ui->screenTV->resizeTVScreen(100,100);
|
|
||||||
|
|
||||||
m_scopeVisXY = new ScopeVisXY(ui->screenTV);
|
|
||||||
m_scopeVisXY->setScale(2.0);
|
|
||||||
m_scopeVisXY->setPixelsPerFrame(4001);
|
|
||||||
m_scopeVisXY->setPlotRGB(qRgb(0, 220, 250));
|
|
||||||
m_scopeVisXY->setGridRGB(qRgb(255, 255, 128));
|
|
||||||
|
|
||||||
for (float x = -0.84; x < 1.0; x += 0.56)
|
|
||||||
{
|
|
||||||
for (float y = -0.84; y < 1.0; y += 0.56)
|
|
||||||
{
|
|
||||||
m_scopeVisXY->addGraticulePoint(std::complex<float>(x, y));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
m_scopeVisXY->calculateGraticule(100,100);
|
|
||||||
|
|
||||||
m_m17Mod = (M17Mod*) channelTx;
|
m_m17Mod = (M17Mod*) channelTx;
|
||||||
m_m17Mod->setMessageQueueToGUI(getInputMessageQueue());
|
m_m17Mod->setMessageQueueToGUI(getInputMessageQueue());
|
||||||
|
|
||||||
@ -503,8 +484,6 @@ M17ModGUI::M17ModGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, BasebandSam
|
|||||||
|
|
||||||
M17ModGUI::~M17ModGUI()
|
M17ModGUI::~M17ModGUI()
|
||||||
{
|
{
|
||||||
delete m_scopeVisXY;
|
|
||||||
ui->screenTV->setParent(nullptr); // Prefer memory leak to core dump... ~TVScreen() is buggy
|
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -578,10 +557,6 @@ void M17ModGUI::displaySettings()
|
|||||||
ui->aprsTo->lineEdit()->setText(m_settings.m_aprsTo);
|
ui->aprsTo->lineEdit()->setText(m_settings.m_aprsTo);
|
||||||
ui->aprsVia->lineEdit()->setText(m_settings.m_aprsVia);
|
ui->aprsVia->lineEdit()->setText(m_settings.m_aprsVia);
|
||||||
|
|
||||||
m_scopeVisXY->setPixelsPerFrame(400*960); // 48000 / 50. Chunks of 50 ms.
|
|
||||||
m_scopeVisXY->setStroke(220);
|
|
||||||
m_scopeVisXY->setDecay(200);
|
|
||||||
|
|
||||||
getRollupContents()->restoreState(m_rollupState);
|
getRollupContents()->restoreState(m_rollupState);
|
||||||
updateAbsoluteCenterFrequency();
|
updateAbsoluteCenterFrequency();
|
||||||
blockApplySettings(false);
|
blockApplySettings(false);
|
||||||
|
@ -78,7 +78,6 @@ private:
|
|||||||
int m_basebandSampleRate;
|
int m_basebandSampleRate;
|
||||||
bool m_doApplySettings;
|
bool m_doApplySettings;
|
||||||
bool m_fmAudioMode;
|
bool m_fmAudioMode;
|
||||||
ScopeVisXY* m_scopeVisXY;
|
|
||||||
|
|
||||||
M17Mod* m_m17Mod;
|
M17Mod* m_m17Mod;
|
||||||
MovingAverageUtil<double, double, 20> m_channelPowerDbAvg;
|
MovingAverageUtil<double, double, 20> m_channelPowerDbAvg;
|
||||||
|
@ -1175,23 +1175,13 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="TVScreen" name="screenTV" native="true">
|
<widget class="QFrame" name="frame">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>100</width>
|
<width>0</width>
|
||||||
<height>100</height>
|
<height>100</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QFrame" name="frame">
|
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
@ -1355,12 +1345,6 @@
|
|||||||
<extends>QToolButton</extends>
|
<extends>QToolButton</extends>
|
||||||
<header>gui/buttonswitch.h</header>
|
<header>gui/buttonswitch.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
|
||||||
<class>TVScreen</class>
|
|
||||||
<extends>QWidget</extends>
|
|
||||||
<header>gui/tvscreen.h</header>
|
|
||||||
<container>1</container>
|
|
||||||
</customwidget>
|
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>LevelMeterVU</class>
|
<class>LevelMeterVU</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include "dsp/datafifo.h"
|
#include "dsp/datafifo.h"
|
||||||
|
#include "dsp/basebandsamplesink.h"
|
||||||
#include "util/messagequeue.h"
|
#include "util/messagequeue.h"
|
||||||
#include "maincore.h"
|
#include "maincore.h"
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
class ChannelAPI;
|
class ChannelAPI;
|
||||||
class M17ModProcessor;
|
class M17ModProcessor;
|
||||||
|
class BasebandSampleSink;
|
||||||
|
|
||||||
class M17ModSource : public QObject, public ChannelSampleSource
|
class M17ModSource : public QObject, public ChannelSampleSource
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user