[Peak Detector]

- send peak width change messages

git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@536 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-06-01 10:12:03 +00:00
parent a4626e99fc
commit d6390820da
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ namespace gr {
else
{
float freq_shift_Hz = m_bandwidth * (float)(pos-m_vlen/2)/m_vlen;
Peak peak(m_peak_id++, pos, m_fcenter, freq_shift_Hz);
Peak peak(m_peak_id++, pos, m_bandwidth/m_vlen, m_fcenter, freq_shift_Hz);
peak.height_rel = m_pXds[pos];
addToListByPos(peaks, peak);
numPeaksClimbed++;