Skip to content

Commit ce95932

Browse files
author
Dennis Sheirer
committed
#35 WIP. Code review.
1 parent 2588d2e commit ce95932

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/main/java/io/github/dsheirer/alias/id/talkgroup/TalkgroupFormatter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public class TalkgroupFormatter
4747

4848
static
4949
{
50+
AnalogTalkgroupFormatter analogTalkgroupFormatter = new AnalogTalkgroupFormatter();
51+
mFormatterMap.put(Protocol.AM, analogTalkgroupFormatter);
52+
mFormatterMap.put(Protocol.NBFM, analogTalkgroupFormatter);
53+
5054
mFormatterMap.put(Protocol.APCO25, new APCO25TalkgroupFormatter());
5155
mFormatterMap.put(Protocol.DMR, new DMRTalkgroupFormatter());
5256
mFormatterMap.put(Protocol.FLEETSYNC, new FleetsyncTalkgroupFormatter());
@@ -55,7 +59,6 @@ public class TalkgroupFormatter
5559
mFormatterMap.put(Protocol.LTR_NET, ltr);
5660
mFormatterMap.put(Protocol.MDC1200, new MDC1200TalkgroupFormatter());
5761
mFormatterMap.put(Protocol.MPT1327, new MPT1327TalkgroupFormatter());
58-
mFormatterMap.put(Protocol.NBFM, new AnalogTalkgroupFormatter());
5962
mFormatterMap.put(Protocol.PASSPORT, new PassportTalkgroupFormatter());
6063
mFormatterMap.put(Protocol.UNKNOWN, new UnknownTalkgroupFormatter());
6164
}

src/main/java/io/github/dsheirer/dsp/am/AmDemodulatorFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ public static IAmDemodulator getAmDemodulator(float gain)
4848
case VECTOR_SIMD_128:
4949
return new VectorAMDemodulator128(gain);
5050
case VECTOR_SIMD_256:
51+
return new VectorAMDemodulator256(gain);
5152
case VECTOR_SIMD_512:
53+
return new VectorAMDemodulator512(gain);
5254
case VECTOR_SIMD_PREFERRED:
5355
return new VectorAMDemodulator64(gain);
5456
case SCALAR:
57+
case UNCALIBRATED:
5558
return new ScalarAMDemodulator(gain);
5659
default:
5760
mLog.warn("Unrecognized optimal operation for AM demodulator: " + implementation.name());

src/main/java/io/github/dsheirer/module/decode/DecoderFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ public static DecodeConfiguration copy(DecodeConfiguration config)
537537
copyAM.setBandwidth(origAM.getBandwidth());
538538
copyAM.setTalkgroup(origAM.getTalkgroup());
539539
copyAM.setSquelchThreshold(origAM.getSquelchThreshold());
540+
copyAM.setSquelchAutoTrack(origAM.isSquelchAutoTrack());
540541
return copyAM;
541542
case DMR:
542543
return new DecodeConfigDMR();
@@ -563,6 +564,7 @@ public static DecodeConfiguration copy(DecodeConfiguration config)
563564
DecodeConfigNBFM copyNBFM = new DecodeConfigNBFM();
564565
copyNBFM.setBandwidth(origNBFM.getBandwidth());
565566
copyNBFM.setSquelchThreshold(origNBFM.getSquelchThreshold());
567+
copyNBFM.setSquelchAutoTrack(origNBFM.isSquelchAutoTrack());
566568
copyNBFM.setTalkgroup(origNBFM.getTalkgroup());
567569
return copyNBFM;
568570
case P25_PHASE1:

0 commit comments

Comments
 (0)