rtl_fm.c & fast_atan2

Nikos Balkanas nikos.balkanas at eyeonix.com
Thu Jan 30 17:25:54 UTC 2014


Is this correct?

if (x >= 0) {
>.......angle = pi4  - pi4 * (x-yabs) / (x+yabs);
} else {
.......angle = pi34 - pi4 * (x+yabs) / (yabs-x);
}

Shouldn't it be:

if (x >= 0) {
>.......angle = pi34  - pi4 * (x-yabs) / (x+yabs);
} else {
.......angle = pi34 - pi4 * (x+yabs) / (yabs-x);
}


TIA,
Nikos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20140130/7f5cface/attachment.html>


More information about the osmocom-sdr mailing list