Adds automatic gain control to P25 C4FM decoder to condition the

samples prior to interpolation.

Resolves issue with using incorrect quadrature index when pulling a
sample from the interpolating buffer.

Resolves issue where the instrumented version of the interpolating
buffer was being constructed in the non-interpolated decoder component.
This commit is contained in:
Denny
2018-04-18 05:47:17 -04:00
parent 3619b480f8
commit 95aa9f8803
2 changed files with 9 additions and 5 deletions

View File

@@ -130,7 +130,7 @@ public class InterpolatingSampleBuffer
*/
public Complex getPrecedingSample()
{
mPrecedingSample.setValues(mDelayLineInphase[mDelayLinePointer + 4], mDelayLineQuadrature[mDelayLinePointer + 3]);
mPrecedingSample.setValues(mDelayLineInphase[mDelayLinePointer + 3], mDelayLineQuadrature[mDelayLinePointer + 3]);
return mPrecedingSample;
}