- cleaned up from debug output

- fixed peak change mechanism

git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@506 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-05-29 14:12:42 +00:00
parent 4c255bf3ff
commit 2d656e14fc
5 changed files with 39 additions and 30 deletions
+4 -4
View File
@@ -278,8 +278,8 @@ namespace gr {
if (!intersection)
{
peak.height_rel = m_pXds[peak.pos];
peak.height_abs = m_pXs[peak.pos];
peak.heightUpdate_rel(m_pXds, nitems_per_block);
peak.heightUpdate_abs(m_pXs, nitems_per_block);
m_peakList.push_back(peak);
}
}
@@ -313,14 +313,14 @@ namespace gr {
for (int i = 0; i < m_peakList.size(); i++)
{
Peak &peak = m_peakList[i];
peak.heightUpdate_rel(m_pXds, nitems_per_block);
peak.heightUpdate_abs(m_pXs, nitems_per_block);
bool found = false;
for (int j=0; j < temp.size(); j++)
{
if (temp[j].isInRange(peak))
{
temp[j].update(peak);
temp[j].setState(1);
found = true;
break;
}