1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-25 19:44:12 -04:00

FT8 demod: band presets

This commit is contained in:
f4exb
2023-01-22 20:08:32 +01:00
parent 2b5078e000
commit 09d18ce9a3
14 changed files with 895 additions and 103 deletions
+5 -4
View File
@@ -3269,10 +3269,11 @@ void FT8::subtract(
// ???
while (fabs(target - actual) > M_PI)
{
if (target < actual)
target += 2 * M_PI;
else
target -= 2 * M_PI;
if (target < actual) {
target += (2 * M_PI) - 1e-3; // plus epsilonn to break possible infinite loop
} else {
target -= (2 * M_PI) + 1e-3; // plus epsilonn to break possible infinite loop
}
}
// adj is to be spread evenly over the off-ramp and on-ramp samples.