mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
C4FM now uses SIMD differential decoding and soft sync detection. LSM updated with soft sync detector and retains original Gardner error detector. Adds new QPSK symbol view in the now playing channel tab. Restores PLL error driven tuner Auto-PPM feature. Deletes the demod viewer GUI application and all instrumented decoders Updates DMR to send soft symbols to new symbol view in Now Playing. Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -265,15 +265,24 @@ public enum Dibit
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
/**
|
||||
* Number of bit errors between this dibit and the expected dibit argument.
|
||||
* @param dibit to compare
|
||||
* @return 0, 1 or 2 bit errors
|
||||
*/
|
||||
public int getBitErrorFrom(Dibit dibit)
|
||||
{
|
||||
byte a = (byte)0x1B;
|
||||
int xor = getValue() ^ dibit.getValue();
|
||||
|
||||
Dibit d1 = Dibit.parse(a, 0);
|
||||
Dibit d2 = Dibit.parse(a, 1);
|
||||
Dibit d3 = Dibit.parse(a, 2);
|
||||
Dibit d4 = Dibit.parse(a, 3);
|
||||
if(xor == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else if(xor == 3)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
||||
System.out.println("1: " + d1 + " 2:" + d2 + " 3:" + d3 + " 4:" + d4);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user