aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_fm.c
diff options
context:
space:
mode:
authorKyle Keen <keenerd@gmail.com>2012-05-31 09:47:55 -0400
committerSteve Markgraf <steve@steve-m.de>2012-07-17 20:42:03 +0200
commitd2f8faa20404d9b61ceb53ebf877dabc2e800499 (patch)
treeaf3d0b3f0e2b6c61d4da294d2b52d81076bbd098 /src/rtl_fm.c
parent62cc8158630d4c175e57ed653aff1b2b99c118e7 (diff)
rtl_fm: disabling fast_atan2() for now, too noisy
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/rtl_fm.c')
-rw-r--r--src/rtl_fm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtl_fm.c b/src/rtl_fm.c
index d886343..2ad62f9 100644
--- a/src/rtl_fm.c
+++ b/src/rtl_fm.c
@@ -209,9 +209,9 @@ int polar_discriminant(int ar, int aj, int br, int bj)
int cr, cj;
double angle;
multiply(ar, aj, br, -bj, &cr, &cj);
- //angle = atan2((double)cj, (double)cr);
- //return (int)(angle / 3.14159 * (1<<14));
- return fast_atan2(cj, cr);
+ angle = atan2((double)cj, (double)cr);
+ return (int)(angle / 3.14159 * (1<<14));
+ //return fast_atan2(cj, cr);
}
void fm_demod(struct fm_state *fm)