- 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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user