apps/grgsm_trx: fix inaccurate sample rate calculation

Change-Id: I0c309588fa0f7822abfb3919327639735db07679
This commit is contained in:
Vadim Yanitskiy 2018-09-07 19:09:12 +07:00
parent 75ae9cc361
commit 38baac9678
2 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Application:
base_port = 6700
# PHY specific
phy_sample_rate = 4 * 1625000 / 6
phy_sample_rate = radio_if.SAMPLE_RATE
phy_freq_offset_hz = None
phy_tx_antenna = "TX/RX"
phy_rx_antenna = "RX2"

View File

@ -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.