mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-20 20:45:47 -05:00
C4FM Slicer - rearranged symbol decision logic
This commit is contained in:
@@ -31,15 +31,21 @@ public class C4FMSlicer implements RealSampleListener
|
||||
@Override
|
||||
public void receive( float sample )
|
||||
{
|
||||
if( sample > THRESHOLD )
|
||||
if( sample > 0.0 )
|
||||
{
|
||||
if( sample >= THRESHOLD )
|
||||
{
|
||||
dispatch( Dibit.D01_PLUS_3 );
|
||||
}
|
||||
else if( sample > 0 )
|
||||
else
|
||||
{
|
||||
dispatch( Dibit.D00_PLUS_1 );
|
||||
|
||||
}
|
||||
else if( sample > -THRESHOLD )
|
||||
}
|
||||
else
|
||||
{
|
||||
if( sample > -THRESHOLD )
|
||||
{
|
||||
dispatch( Dibit.D10_MINUS_1 );
|
||||
}
|
||||
@@ -48,6 +54,7 @@ public class C4FMSlicer implements RealSampleListener
|
||||
dispatch( Dibit.D11_MINUS_3 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Dispatches the symbol decision to any registered listeners
|
||||
|
||||
Reference in New Issue
Block a user