mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-18 13:48:37 -04:00
More Sonar bug fixes
This commit is contained in:
@@ -370,7 +370,13 @@ void WFIR::WindowData(double *Data, int N, TWindowType WindowType, double Alpha,
|
||||
if (WindowType != wtKAISER && WindowType != wtFLATTOP)
|
||||
{
|
||||
for (j = M / 2; j < N - M / 2; j++)
|
||||
{
|
||||
if (j >= N + 2) {
|
||||
break;
|
||||
}
|
||||
|
||||
WinCoeff[j] = 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
// This will set the gain of the window to 1. Only the Flattop window has unity gain by design.
|
||||
|
||||
Reference in New Issue
Block a user