mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-04 22:27:53 -04:00
Merge pull request #2021 from srcejon/freq_scanner
Decrease default floor in Db calculation from -120dB to -150dB
This commit is contained in:
commit
0ac15f6a59
@ -371,12 +371,11 @@ void ChannelPowerGUI::tick()
|
|||||||
double magAvg, magPulseAvg, magMaxPeak, magMinPeak;
|
double magAvg, magPulseAvg, magMaxPeak, magMinPeak;
|
||||||
m_channelPower->getMagLevels(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();
|
powDbAvg = std::numeric_limits<double>::quiet_NaN();
|
||||||
powDbPulseAvg = std::numeric_limits<double>::quiet_NaN();
|
powDbPulseAvg = std::numeric_limits<double>::quiet_NaN();
|
||||||
powDbMaxPeak = std::numeric_limits<double>::quiet_NaN();
|
powDbMaxPeak = std::numeric_limits<double>::quiet_NaN();
|
||||||
powDbMinPeak = std::numeric_limits<double>::quiet_NaN();
|
powDbMinPeak = std::numeric_limits<double>::quiet_NaN();
|
||||||
powDbPathLoss = std::numeric_limits<double>::quiet_NaN();
|
|
||||||
|
|
||||||
const int precision = 2;
|
const int precision = 2;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
class SDRBASE_API CalcDb
|
class SDRBASE_API CalcDb
|
||||||
{
|
{
|
||||||
public:
|
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 powerFromdB(double powerdB);
|
||||||
static double frexp10(double arg, int *exp);
|
static double frexp10(double arg, int *exp);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user