Skip to content

Commit

Permalink
Merge pull request #2021 from srcejon/freq_scanner
Browse files Browse the repository at this point in the history
Decrease default floor in Db calculation from -120dB to -150dB
  • Loading branch information
f4exb authored Mar 15, 2024
2 parents 9b7a44c + c6143ca commit 0ac15f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions plugins/channelrx/channelpower/channelpowergui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion sdrbase/util/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 0ac15f6

Please sign in to comment.