home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Automatically Tune to Strongest Duplicate Channel
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vapourEyes" data-source="post: 1270328" data-attributes="member: 143065"><p>[CODE=csharp]</p><p></p><p> exists = true;</p><p> dbChannel = null;</p><p></p><p> int tuningOverallThreshold = 35;</p><p></p><p> int level = RemoteControl.Instance.SignalLevel(_cardNumber);</p><p> progressBarLevel.Value = Math.Abs(level);</p><p></p><p> // Normalise</p><p> if (level < 0) level = 0;</p><p> if (level > 100) level = 100;</p><p></p><p> // Filter weaker channels...</p><p> if (!( Math.Abs(RemoteControl.Instance.SignalLevel(_cardNumber)) > tuningOverallThreshold && RemoteControl.Instance.SignalQuality(_cardNumber) > tuningOverallThreshold)) {</p><p> continue;</p><p> }</p><p></p><p> // Darwinian channel natural selection...</p><p> if (RemoteControl.Instance.SignalLevel(_cardNumber) > 0)</p><p> if (Math.Abs(RemoteControl.Instance.SignalLevel(_cardNumber)) >= tuningOverallThreshold && Math.Abs(RemoteControl.Instance.SignalQuality(_cardNumber)) >= tuningOverallThreshold)</p><p> {</p><p> // add new strong channel</p><p> dbChannel = layer.AddNewChannel(channel.Name, channel.LogicalChannelNumber);</p><p> }</p><p> else</p><p> {</p><p> dbChannel = currentDetail.ReferencedChannel();</p><p> }</p><p> }</p><p></p><p>[/CODE]</p><p></p><p></p><p>A crude approximation without per-channel and overall level storage. Which wont work anyways logically coz you need a start point that then acts as a limiter in any comparitor... ???</p><p></p><p>You'd have to constantly reset and revise all stored levels, adjusting as the next highest level enters the system.</p><p></p><p>I've also introduced weak-channel ignore too, since under testing here a weak channel crept in under the radar.... don't worry - we'll show some mercy.</p><p></p><p>???</p></blockquote><p></p>
[QUOTE="vapourEyes, post: 1270328, member: 143065"] [CODE=csharp] exists = true; dbChannel = null; int tuningOverallThreshold = 35; int level = RemoteControl.Instance.SignalLevel(_cardNumber); progressBarLevel.Value = Math.Abs(level); // Normalise if (level < 0) level = 0; if (level > 100) level = 100; // Filter weaker channels... if (!( Math.Abs(RemoteControl.Instance.SignalLevel(_cardNumber)) > tuningOverallThreshold && RemoteControl.Instance.SignalQuality(_cardNumber) > tuningOverallThreshold)) { continue; } // Darwinian channel natural selection... if (RemoteControl.Instance.SignalLevel(_cardNumber) > 0) if (Math.Abs(RemoteControl.Instance.SignalLevel(_cardNumber)) >= tuningOverallThreshold && Math.Abs(RemoteControl.Instance.SignalQuality(_cardNumber)) >= tuningOverallThreshold) { // add new strong channel dbChannel = layer.AddNewChannel(channel.Name, channel.LogicalChannelNumber); } else { dbChannel = currentDetail.ReferencedChannel(); } } [/CODE] A crude approximation without per-channel and overall level storage. Which wont work anyways logically coz you need a start point that then acts as a limiter in any comparitor... ??? You'd have to constantly reset and revise all stored levels, adjusting as the next highest level enters the system. I've also introduced weak-channel ignore too, since under testing here a weak channel crept in under the radar.... don't worry - we'll show some mercy. ??? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Automatically Tune to Strongest Duplicate Channel
Contact us
RSS
Top
Bottom