diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-09-07 19:09:12 +0700 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2018-09-13 15:35:44 +0200 |
commit | 562125270bff1bc6181989607426b803523c420a (patch) | |
tree | 4fc398cd8e4711158b38a804d43ba407fb2e4090 /python | |
parent | 9e46c4807dd48629469e3c7587c13b98162acd49 (diff) |
apps/grgsm_trx: fix inaccurate sample rate calculation
Change-Id: I0c309588fa0f7822abfb3919327639735db07679
Diffstat (limited to 'python')
-rw-r--r-- | python/trx/radio_if.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py index 407e724..2aeb49a 100644 --- a/python/trx/radio_if.py +++ b/python/trx/radio_if.py @@ -75,6 +75,9 @@ 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 + # FIXME: shall be measured (automatically?) for # particular device and particular clock rate. # The current value is measured for USRP B2X0 at 26e6. |