Frequency limit for Automatic Frequency Control to prevent the controller from walking too far.

Defaults to a maximum of 3kHz, but can be set to as high as 15 kHz.
This commit is contained in:
dennis.sheirer
2014-10-26 22:36:06 +00:00
parent 08f321fda4
commit d1ab661754
5 changed files with 71 additions and 9 deletions

View File

@@ -135,10 +135,6 @@ public abstract class TunerController implements Tunable
long maxLockedFrequency = mTunedChannels
.get( mTunedChannels.size() - 1 ).getMaxFrequency();
mLog.debug( "Tuner Controller min [" + minLockedFrequency +
"] max [" + maxLockedFrequency +
"] bw [" + getBandwidth() + "]" );
//Requested channel is higher than min locked frequency
if( minLockedFrequency <= channel.getMinFrequency() &&
( channel.getMaxFrequency() - minLockedFrequency ) <= getBandwidth() )