peak detect: change threshold is 3.0 dB

git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@508 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-05-29 14:46:22 +00:00
parent 880e46bce9
commit e78ef5b772
2 changed files with 257 additions and 100 deletions
+4 -4
View File
@@ -97,7 +97,7 @@ namespace jay {
}
height_rel = newHeight;
if (std::fabs(height_rel_last-newHeight) >= 1.0f)
if (std::fabs(height_rel_last-newHeight) >= 3.0f)
{
isModified = true;
height_rel_last = height_rel;
@@ -127,7 +127,7 @@ namespace jay {
}
height_abs = newHeight;
if (std::fabs(height_abs_last-newHeight) >= 1.0f)
if (std::fabs(height_abs_last-newHeight) >= 3.0f)
{
isModified = true;
height_abs_last = height_abs;
@@ -201,12 +201,12 @@ namespace jay {
bool update(const Peak &other)
{
if (std::fabs(height_rel_last-other.height_rel) >= 1.0f)
if (std::fabs(height_rel_last-other.height_rel) >= 3.0f)
{
height_rel_last = other.height_rel;
isModified = true;
}
if (std::fabs(height_abs-other.height_abs) >= 1.0f)
if (std::fabs(height_abs-other.height_abs) >= 3.0f)
{
height_abs_last = other.height_abs;
isModified = true;