mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 09:37:36 -05:00
C4FM Slicer - rearranged symbol decision logic
This commit is contained in:
@@ -31,21 +31,28 @@ public class C4FMSlicer implements RealSampleListener
|
|||||||
@Override
|
@Override
|
||||||
public void receive( float sample )
|
public void receive( float sample )
|
||||||
{
|
{
|
||||||
if( sample > THRESHOLD )
|
if( sample > 0.0 )
|
||||||
{
|
{
|
||||||
dispatch( Dibit.D01_PLUS_3 );
|
if( sample >= THRESHOLD )
|
||||||
}
|
{
|
||||||
else if( sample > 0 )
|
dispatch( Dibit.D01_PLUS_3 );
|
||||||
{
|
}
|
||||||
dispatch( Dibit.D00_PLUS_1 );
|
else
|
||||||
}
|
{
|
||||||
else if( sample > -THRESHOLD )
|
dispatch( Dibit.D00_PLUS_1 );
|
||||||
{
|
|
||||||
dispatch( Dibit.D10_MINUS_1 );
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dispatch( Dibit.D11_MINUS_3 );
|
if( sample > -THRESHOLD )
|
||||||
|
{
|
||||||
|
dispatch( Dibit.D10_MINUS_1 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dispatch( Dibit.D11_MINUS_3 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user