mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 01:27:34 -05:00
Updated Call Event handling/display for all decoders and updated channel display values for all decoders.
- Call events now show start-stop timestamps. (or START-In Progress if call is ongoing ) - Call start/stop events are now on the same event line. - Channel panels now display site and/or channel info - LTR call events are limited to CALLs on the current LCN, in order to cut down on false call events resulting from noise. - Passport display channels now show site/channel. - Changed default window used by the DFTProcessor to Cosine, which doesn't have as much FFT bin leakage.
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
******************************************************************************/
|
||||
package decode.passport;
|
||||
|
||||
import log.Log;
|
||||
|
||||
public enum PassportBand
|
||||
{
|
||||
BAND_800( "800", 800000000 ),
|
||||
@@ -38,6 +40,8 @@ public enum PassportBand
|
||||
BAND_VHF( "VHF", 0 ),
|
||||
BAND_UNKNOWN( "UNK", 0 );
|
||||
|
||||
public static int CHANNEL_BANDWIDTH = 12500; //Hertz
|
||||
|
||||
private String mDescription;
|
||||
private int mBase;
|
||||
|
||||
@@ -59,6 +63,17 @@ public enum PassportBand
|
||||
}
|
||||
}
|
||||
|
||||
public long getFrequency( int channel )
|
||||
{
|
||||
return ( mBase + ( channel * CHANNEL_BANDWIDTH ) );
|
||||
}
|
||||
|
||||
public int getChannel( long frequency )
|
||||
{
|
||||
return Math.round( (float)( frequency - mBase ) /
|
||||
(float)CHANNEL_BANDWIDTH );
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return mDescription;
|
||||
|
||||
Reference in New Issue
Block a user