mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-05-06 20:26:48 +00:00
Use more accurate arctan for NBFM demodulation.
This commit is contained in:
parent
ab2c5b256f
commit
ceef8d32d3
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user