mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-31 10:39:57 -04:00
Use more accurate arctan for NBFM demodulation.
This commit is contained in:
parent
ab2c5b256f
commit
ceef8d32d3
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue