mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-13 00:57:31 -05:00
Resolves #173 - logging/management of P25 TDMA channels. There is no Phase II decoder support yet.
This commit is contained in:
@@ -80,7 +80,26 @@ public class IdentifierUpdateTDMA extends IdentifierUpdate
|
||||
return -offset;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public long getDownlinkFrequency(int channelNumber)
|
||||
{
|
||||
if(isTDMA())
|
||||
{
|
||||
return getBaseFrequency() + ( (channelNumber / getChannelType().getSlotsPerCarrier()) * getChannelSpacing() );
|
||||
}
|
||||
else
|
||||
{
|
||||
return super.getDownlinkFrequency(channelNumber);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTDMA()
|
||||
{
|
||||
return getChannelType().getAccessType() == AccessType.TDMA;
|
||||
}
|
||||
|
||||
public enum ChannelType
|
||||
{
|
||||
TYPE_0( AccessType.FDMA, 12500, 1, Vocoder.HALF_RATE ),
|
||||
|
||||
Reference in New Issue
Block a user