mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-25 06:47:44 +00:00
Use more accurate arctan for NBFM demodulation.
This commit is contained in:
@@ -99,8 +99,8 @@ buffer_f32_t FM::execute(
|
|||||||
const auto t0 = multiply_conjugate_s16_s32(s0, z);
|
const auto t0 = multiply_conjugate_s16_s32(s0, z);
|
||||||
const auto t1 = multiply_conjugate_s16_s32(s1, s0);
|
const auto t1 = multiply_conjugate_s16_s32(s1, s0);
|
||||||
z = s1;
|
z = s1;
|
||||||
*(dst_p++) = angle_approx_0deg27(t0) * k;
|
*(dst_p++) = angle_precise(t0) * k;
|
||||||
*(dst_p++) = angle_approx_0deg27(t1) * k;
|
*(dst_p++) = angle_precise(t1) * k;
|
||||||
}
|
}
|
||||||
z_ = z;
|
z_ = z;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user