From ceef8d32d3b5da9a4faf7b98cad7ae677c63a600 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 2 Feb 2016 16:15:14 -0800 Subject: [PATCH] Use more accurate arctan for NBFM demodulation. --- firmware/baseband/dsp_demodulate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/baseband/dsp_demodulate.cpp b/firmware/baseband/dsp_demodulate.cpp index b0eae2b5..1c59c174 100644 --- a/firmware/baseband/dsp_demodulate.cpp +++ b/firmware/baseband/dsp_demodulate.cpp @@ -99,8 +99,8 @@ buffer_f32_t FM::execute( const auto t0 = multiply_conjugate_s16_s32(s0, z); const auto t1 = multiply_conjugate_s16_s32(s1, s0); z = s1; - *(dst_p++) = angle_approx_0deg27(t0) * k; - *(dst_p++) = angle_approx_0deg27(t1) * k; + *(dst_p++) = angle_precise(t0) * k; + *(dst_p++) = angle_precise(t1) * k; } z_ = z;