diff options
author | Piotr Krysik <ptrkrysik@gmail.com> | 2018-09-12 00:35:05 +0700 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2018-09-13 15:35:44 +0200 |
commit | 58659a4dee885141b442100f1b395fd0856ec275 (patch) | |
tree | b28a17cfe65f2966a43aae776a5362310c7da24b /python/trx | |
parent | 562125270bff1bc6181989607426b803523c420a (diff) |
trx/radio_if.py: clarify magic numbers in sample rate calculation
Change-Id: I55f283113d0324a0236b7bbf13bce5718003b857
Diffstat (limited to 'python/trx')
-rw-r--r-- | python/trx/radio_if.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py index 2aeb49a..f7f124f 100644 --- a/python/trx/radio_if.py +++ b/python/trx/radio_if.py @@ -75,8 +75,8 @@ class radio_if(gr.top_block): GSM_TS_PERIOD_uS = GSM_SYM_PERIOD_uS * 156.25 GSM_UL_DL_SHIFT_uS = -(GSM_TS_PERIOD_uS * 3) - # TODO: explain where do these values come from? - SAMPLE_RATE = 4.0 * 1625000.0 / 6.0 + GSM_SYM_RATE = (1.0 / GSM_SYM_PERIOD_uS) * 1e6 + SAMPLE_RATE = GSM_SYM_RATE * osr # FIXME: shall be measured (automatically?) for # particular device and particular clock rate. |