1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

Websocket spectrum: removed passing of ref level and power range

This commit is contained in:
f4exb 2020-05-04 15:34:16 +02:00
parent 2a2039eb4f
commit 8e291df439
3 changed files with 2 additions and 26 deletions

View File

@ -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

View File

@ -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*) &centerFrequency, sizeof(uint64_t)); // 0

View File

@ -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