# Mistake in fmdet\_cf\_impl.cc:109?

**URL:** <https://www.ruby-forum.com/t/mistake-in-fmdet-cf-impl-cc-109/235722>\
**Category:** GNU Radio\
**Created:** [July 11, 2013, 12:39pm UTC](https://www.ruby-forum.com/t/mistake-in-fmdet-cf-impl-cc-109/235722 "2013-07-11T12:39:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [July 11, 2013, 12:39pm UTC](https://www.ruby-forum.com/t/mistake-in-fmdet-cf-impl-cc-109/235722/1 "2013-07-11T12:39:02Z")

</div>

Hello all,

I was reading the c++ code of FM demodulators in gnuradio and I  
encountered this in fmdet\_cf\_impl.cc:109:

* * *

## Sdot = d\_scl \* (-S0+d\_8_S1-d\_8_S1+S4);

I don’t know according to what principle this demodulator work exactly  
but it doesn’t seem to make too much sense to first add d\_8\*S1 and then  
subtract it.

–  
Best Regards,  
Piotr K.

---

<div class="post-metadata">

**Author:** ![Perper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e79b87/32.png) [@Perper](https://www.ruby-forum.com/u/Perper)\
**Post date:** [July 16, 2013, 12:51am UTC](https://www.ruby-forum.com/t/mistake-in-fmdet-cf-impl-cc-109/235722/2 "2013-07-16T00:51:08Z")

</div>

On Thu, Jul 11, 2013 at 3:37 AM, Perper [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

This code looks ‘vestigial’; something left over from early development  
or  
debugging that wasn’t removed. I’ll make a note to clean it up.
