- July 31, 2013
- 154
- 52
- Home Country
- United Kingdom
- Thread starter
- #11
At this point in the code, we could compare signal strength
I'd need to do something like below.
I am not sure where to get the signal strength for use at this point ?
curTuning.BandWidth ?
I'd need to do something like below.
C#:
if (currentDetail == null)
{
//add new channel
exists = false;
dbChannel = layer.AddNewChannel(channel.Name, channel.LogicalChannelNumber);
dbChannel.SortOrder = 10000;
if (channel.LogicalChannelNumber >= 1)
{
dbChannel.SortOrder = channel.LogicalChannelNumber;
}
dbChannel.IsTv = channel.IsTv;
dbChannel.IsRadio = channel.IsRadio;
dbChannel.Persist();
}
else
{
exists = true;
//dbChannel = currentDetail.ReferencedChannel();
if (signalStrength > dbChannel.signalStrength) // psuedo code
{
// add stronger channel // psuedo code
}
}
I am not sure where to get the signal strength for use at this point ?
curTuning.BandWidth ?
Last edited: