Commit 856ee0bd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5c054dec
......@@ -260,7 +260,7 @@
bandwidth: 10,
subcarrier_spacing: 30,
ssb_nr_arfcn: 522750,
ssb_nr_arfcn: 522990,
ssb_pos_bitmap: "10000000",
root_sequence_index: 2,
......
......@@ -121,7 +121,9 @@
{%- set scs = scs_khz * 1e-3 %}
{%- for i in range(10000) %}{# = `while 1` #}
{%- set _.fg = nr.get_frequency_by_gscn(_.gscn) %}
{%- if _.fg % scs < 1e-5*scs %}{# == 0 with tolerating fp #}
{#- check `fg % scs == 0` with tolerating fp rounding #}
{%- set r = (_.fg % scs) / scs %}
{%- if abs(r - round(r)) < 1e-5 %}
{%- break %}
{%- endif %}
{%- set _.gscn = _.gscn - 1 %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment