<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10880">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">trx/radio_if.py: clarify magic numbers in sample rate calculation<br><br>Change-Id: I55f283113d0324a0236b7bbf13bce5718003b857<br>---<br>M python/trx/radio_if.py<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/80/10880/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py</span><br><span>index 2aeb49a..f7f124f 100644</span><br><span>--- a/python/trx/radio_if.py</span><br><span>+++ b/python/trx/radio_if.py</span><br><span>@@ -75,8 +75,8 @@</span><br><span>       GSM_TS_PERIOD_uS = GSM_SYM_PERIOD_uS * 156.25</span><br><span>        GSM_UL_DL_SHIFT_uS = -(GSM_TS_PERIOD_uS * 3)</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-        # TODO: explain where do these values come from?</span><br><span style="color: hsl(0, 100%, 40%);">-        SAMPLE_RATE = 4.0 * 1625000.0 / 6.0</span><br><span style="color: hsl(120, 100%, 40%);">+   GSM_SYM_RATE = (1.0 / GSM_SYM_PERIOD_uS) * 1e6</span><br><span style="color: hsl(120, 100%, 40%);">+        SAMPLE_RATE = GSM_SYM_RATE * osr</span><br><span> </span><br><span>         # FIXME: shall be measured (automatically?) for</span><br><span>      # particular device and particular clock rate.</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10880">change 10880</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10880"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: gr-gsm </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I55f283113d0324a0236b7bbf13bce5718003b857 </div>
<div style="display:none"> Gerrit-Change-Number: 10880 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>