mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
ScopeNG: first symbol clock synchro implementation
This commit is contained in:
parent
c9861c455b
commit
827c9b6b73
@ -23,10 +23,14 @@ Projector::Projector(ProjectionType projectionType) :
|
||||
m_prevArg(0.0f),
|
||||
m_cache(0),
|
||||
m_cacheMaster(true)
|
||||
{}
|
||||
{
|
||||
m_symSync = new SymbolSynchronizer();
|
||||
}
|
||||
|
||||
Projector::~Projector()
|
||||
{}
|
||||
{
|
||||
delete m_symSync;
|
||||
}
|
||||
|
||||
Real Projector::run(const Sample& s)
|
||||
{
|
||||
@ -76,6 +80,9 @@ Real Projector::run(const Sample& s)
|
||||
v = dPhi;
|
||||
}
|
||||
break;
|
||||
case ProjectionClock:
|
||||
v = m_symSync->run(s);
|
||||
break;
|
||||
case ProjectionReal:
|
||||
default:
|
||||
v = s.m_real / SDR_RX_SCALEF;
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
#include "dsptypes.h"
|
||||
|
||||
class SymbolSynchronizer;
|
||||
|
||||
class Projector
|
||||
{
|
||||
public:
|
||||
@ -47,4 +49,5 @@ private:
|
||||
Real m_prevArg;
|
||||
Real *m_cache;
|
||||
bool m_cacheMaster;
|
||||
SymbolSynchronizer *m_symSync;
|
||||
};
|
||||
|
@ -1152,6 +1152,7 @@ void GLScopeNGGUI::fillProjectionCombo(QComboBox* comboBox)
|
||||
comboBox->addItem("MagdB", Projector::ProjectionMagDB);
|
||||
comboBox->addItem("Phi", Projector::ProjectionPhase);
|
||||
comboBox->addItem("dPhi", Projector::ProjectionDPhase);
|
||||
comboBox->addItem("Clk", Projector::ProjectionClock);
|
||||
}
|
||||
|
||||
void GLScopeNGGUI::disableLiveMode(bool disable)
|
||||
|
Loading…
Reference in New Issue
Block a user