1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

Merge pull request #2021 from srcejon/freq_scanner

Decrease default floor in Db calculation from -120dB to -150dB
This commit is contained in:
Edouard Griffiths 2024-03-15 04:08:46 +01:00 committed by GitHub
commit 0ac15f6a59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -371,12 +371,11 @@ void ChannelPowerGUI::tick()
double magAvg, magPulseAvg, magMaxPeak, magMinPeak;
m_channelPower->getMagLevels(magAvg, magPulseAvg, magMaxPeak, magMinPeak);
double powDbAvg, powDbPulseAvg, powDbMaxPeak, powDbMinPeak, powDbPathLoss;
double powDbAvg, powDbPulseAvg, powDbMaxPeak, powDbMinPeak;
powDbAvg = std::numeric_limits<double>::quiet_NaN();
powDbPulseAvg = std::numeric_limits<double>::quiet_NaN();
powDbMaxPeak = std::numeric_limits<double>::quiet_NaN();
powDbMinPeak = std::numeric_limits<double>::quiet_NaN();
powDbPathLoss = std::numeric_limits<double>::quiet_NaN();
const int precision = 2;

View File

@ -26,7 +26,7 @@
class SDRBASE_API CalcDb
{
public:
static double dbPower(double magsq, double floor = 1e-12);
static double dbPower(double magsq, double floor = 1e-15); // Floor at -150dB
static double powerFromdB(double powerdB);
static double frexp10(double arg, int *exp);
};