kopia lustrzana https://github.com/f4exb/sdrangel
Websocket spectrum: removed passing of ref level and power range
rodzic
2a2039eb4f
commit
8e291df439
|
@ -144,8 +144,6 @@ void SpectrumVis::feed(const Complex *begin, unsigned int length)
|
|||
m_wsSpectrum.newSpectrum(
|
||||
m_powerSpectrum,
|
||||
m_settings.m_fftSize,
|
||||
m_settings.m_refLevel,
|
||||
m_settings.m_powerRange,
|
||||
m_centerFrequency,
|
||||
m_sampleRate,
|
||||
m_settings.m_linear
|
||||
|
@ -179,8 +177,6 @@ void SpectrumVis::feed(const Complex *begin, unsigned int length)
|
|||
m_wsSpectrum.newSpectrum(
|
||||
m_powerSpectrum,
|
||||
m_settings.m_fftSize,
|
||||
m_settings.m_refLevel,
|
||||
m_settings.m_powerRange,
|
||||
m_centerFrequency,
|
||||
m_sampleRate,
|
||||
m_settings.m_linear
|
||||
|
@ -225,8 +221,6 @@ void SpectrumVis::feed(const Complex *begin, unsigned int length)
|
|||
m_wsSpectrum.newSpectrum(
|
||||
m_powerSpectrum,
|
||||
m_settings.m_fftSize,
|
||||
m_settings.m_refLevel,
|
||||
m_settings.m_powerRange,
|
||||
m_centerFrequency,
|
||||
m_sampleRate,
|
||||
m_settings.m_linear
|
||||
|
@ -270,8 +264,6 @@ void SpectrumVis::feed(const Complex *begin, unsigned int length)
|
|||
m_wsSpectrum.newSpectrum(
|
||||
m_powerSpectrum,
|
||||
m_settings.m_fftSize,
|
||||
m_settings.m_refLevel,
|
||||
m_settings.m_powerRange,
|
||||
m_centerFrequency,
|
||||
m_sampleRate,
|
||||
m_settings.m_linear
|
||||
|
@ -372,8 +364,6 @@ void SpectrumVis::feed(const SampleVector::const_iterator& cbegin, const SampleV
|
|||
m_wsSpectrum.newSpectrum(
|
||||
m_powerSpectrum,
|
||||
m_settings.m_fftSize,
|
||||
m_settings.m_refLevel,
|
||||
m_settings.m_powerRange,
|
||||
m_centerFrequency,
|
||||
m_sampleRate,
|
||||
m_settings.m_linear
|
||||
|
@ -428,8 +418,6 @@ void SpectrumVis::feed(const SampleVector::const_iterator& cbegin, const SampleV
|
|||
m_wsSpectrum.newSpectrum(
|
||||
m_powerSpectrum,
|
||||
m_settings.m_fftSize,
|
||||
m_settings.m_refLevel,
|
||||
m_settings.m_powerRange,
|
||||
m_centerFrequency,
|
||||
m_sampleRate,
|
||||
m_settings.m_linear
|
||||
|
@ -504,8 +492,6 @@ void SpectrumVis::feed(const SampleVector::const_iterator& cbegin, const SampleV
|
|||
m_wsSpectrum.newSpectrum(
|
||||
m_powerSpectrum,
|
||||
m_settings.m_fftSize,
|
||||
m_settings.m_refLevel,
|
||||
m_settings.m_powerRange,
|
||||
m_centerFrequency,
|
||||
m_sampleRate,
|
||||
m_settings.m_linear
|
||||
|
@ -579,8 +565,6 @@ void SpectrumVis::feed(const SampleVector::const_iterator& cbegin, const SampleV
|
|||
m_wsSpectrum.newSpectrum(
|
||||
m_powerSpectrum,
|
||||
m_settings.m_fftSize,
|
||||
m_settings.m_refLevel,
|
||||
m_settings.m_powerRange,
|
||||
m_centerFrequency,
|
||||
m_sampleRate,
|
||||
m_settings.m_linear
|
||||
|
|
|
@ -114,8 +114,6 @@ void WSSpectrum::socketDisconnected()
|
|||
void WSSpectrum::newSpectrum(
|
||||
const std::vector<Real>& spectrum,
|
||||
int fftSize,
|
||||
float refLevel,
|
||||
float powerRange,
|
||||
uint64_t centerFrequency,
|
||||
int bandwidth,
|
||||
bool linear
|
||||
|
@ -134,8 +132,6 @@ void WSSpectrum::newSpectrum(
|
|||
spectrum,
|
||||
fftSize,
|
||||
elapsed,
|
||||
refLevel,
|
||||
powerRange,
|
||||
centerFrequency,
|
||||
bandwidth,
|
||||
linear
|
||||
|
@ -157,13 +153,13 @@ void WSSpectrum::buildPayload(
|
|||
const std::vector<Real>& spectrum,
|
||||
int fftSize,
|
||||
int64_t fftTimeMs,
|
||||
float refLevel,
|
||||
float powerRange,
|
||||
uint64_t centerFrequency,
|
||||
int bandwidth,
|
||||
bool linear
|
||||
)
|
||||
{
|
||||
float refLevel = -30.0;
|
||||
float powerRange = 70.0;
|
||||
QBuffer buffer(&bytes);
|
||||
buffer.open(QIODevice::WriteOnly);
|
||||
buffer.write((char*) ¢erFrequency, sizeof(uint64_t)); // 0
|
||||
|
|
|
@ -47,8 +47,6 @@ public:
|
|||
void newSpectrum(
|
||||
const std::vector<Real>& spectrum,
|
||||
int fftSize,
|
||||
float refLevel,
|
||||
float powerRange,
|
||||
uint64_t centerFrequency,
|
||||
int bandwidth,
|
||||
bool linear
|
||||
|
@ -76,8 +74,6 @@ private:
|
|||
const std::vector<Real>& spectrum,
|
||||
int fftSize,
|
||||
int64_t fftTimeMs,
|
||||
float refLevel,
|
||||
float powerRange,
|
||||
uint64_t centerFrequency,
|
||||
int bandwidth,
|
||||
bool linear
|
||||
|
|
Ładowanie…
Reference in New Issue