Use full multiplier bitwidth for windowing + increased number of DFT bins

This commit is contained in:
Jan Käberich 2020-11-07 17:10:41 +01:00
parent a2389fca13
commit 8b9b8265b9
21 changed files with 625 additions and 579 deletions

View file

@ -129,12 +129,12 @@ static constexpr Protocol::DeviceInfo defaultInfo = {
.limits_minFreq = 0,
.limits_maxFreq = 6000000000,
.limits_minIFBW = 10,
.limits_maxIFBW = 50000,
.limits_maxPoints = 4501,
.limits_cdbm_min = -4000,
.limits_cdbm_max = 0,
.limits_minRBW = 15,
.limits_maxRBW = 100000,
.limits_maxIFBW = 1000000,
.limits_maxPoints = 10000,
.limits_cdbm_min = -10000,
.limits_cdbm_max = 1000,
.limits_minRBW = 1,
.limits_maxRBW = 1000000,
};
Protocol::DeviceInfo Device::lastInfo = defaultInfo;

View file

@ -232,8 +232,8 @@ using namespace std;
void SpectrumAnalyzer::NewDatapoint(Protocol::SpectrumAnalyzerResult d)
{
// TODO level adjustment in device
d.port1 /= pow(10.0, 7.5);
d.port2 /= pow(10.0, 7.5);
d.port1 /= 126500000.0;
d.port2 /= 126500000.0;
d = average.process(d);
traceModel.addSAData(d);
emit dataChanged();