1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 23:43:43 -04:00

WDSP: more rework

This commit is contained in:
f4exb
2024-08-05 20:05:59 +02:00
parent de756413e8
commit 34917a0b21
32 changed files with 1483 additions and 1360 deletions
+11 -5
View File
@@ -38,7 +38,14 @@ namespace WDSP {
void DBQBP::calc()
{
double f0, w0, bw, q, sn, cs, c, den;
double f0;
double w0;
double bw;
double q;
double sn;
double cs;
double c;
double den;
bw = f_high - f_low;
f0 = (f_high + f_low) / 2.0;
@@ -98,13 +105,12 @@ void DBQBP::execute()
{
if (run)
{
int i, n;
for (i = 0; i < size; i++)
for (int i = 0; i < size; i++)
{
x0[0] = gain * in[i];
for (n = 0; n < nstages; n++)
for (int n = 0; n < nstages; n++)
{
if (n > 0)
x0[n] = y0[n - 1];
@@ -120,7 +126,7 @@ void DBQBP::execute()
x1[n] = x0[n];
}
out[i] = y0[nstages - 1];
out[i] = (float) y0[nstages - 1];
}
}
else if (out != in)