mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 19:28:47 -05:00
DATV demod: more cleanup
This commit is contained in:
parent
94cd6b0f0d
commit
8699bdcbc4
@ -306,7 +306,7 @@ struct fir_filter : runnable
|
|||||||
T *pc = shifted_coeffs;
|
T *pc = shifted_coeffs;
|
||||||
T *pi = pin;
|
T *pi = pin;
|
||||||
T x = 0;
|
T x = 0;
|
||||||
for (unsigned int i = ncoeffs; i--; ++pc, --pi)
|
for (int i = ncoeffs; i--; ++pc, --pi)
|
||||||
x = x + (*pc) * (*pi);
|
x = x + (*pc) * (*pi);
|
||||||
*pout = x;
|
*pout = x;
|
||||||
}
|
}
|
||||||
@ -325,7 +325,7 @@ struct fir_filter : runnable
|
|||||||
float current_freq;
|
float current_freq;
|
||||||
void set_freq(float f)
|
void set_freq(float f)
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < ncoeffs; ++i)
|
for (int i = 0; i < ncoeffs; ++i)
|
||||||
{
|
{
|
||||||
float a = 2 * M_PI * f * (i - ncoeffs / 2);
|
float a = 2 * M_PI * f * (i - ncoeffs / 2);
|
||||||
float c = cosf(a), s = sinf(a);
|
float c = cosf(a), s = sinf(a);
|
||||||
|
Loading…
Reference in New Issue
Block a user