From 4089c1a7f3dbadf024b160667ebbd273d77984dd Mon Sep 17 00:00:00 2001 From: piotr Date: Wed, 6 Aug 2014 14:10:56 +0200 Subject: Added new blocks for clock freqeuncy correction --- hier_blocks/clock_offset_corrector.grc | 652 +++++++++++++++++++++++++++++++++ 1 file changed, 652 insertions(+) create mode 100644 hier_blocks/clock_offset_corrector.grc (limited to 'hier_blocks') diff --git a/hier_blocks/clock_offset_corrector.grc b/hier_blocks/clock_offset_corrector.grc new file mode 100644 index 0000000..56a70d7 --- /dev/null +++ b/hier_blocks/clock_offset_corrector.grc @@ -0,0 +1,652 @@ + + + Wed Aug 6 13:47:37 2014 + + options + + id + clock_offset_corrector + + + _enabled + True + + + title + Clock offset corrector + + + author + Piotr Krysik + + + description + + + + window_size + 1280, 1024 + + + generate_options + hb + + + category + GSM + + + run_options + prompt + + + run + True + + + max_nouts + 0 + + + realtime_scheduling + + + + alias + + + + _coordinate + (10, 10) + + + _rotation + 0 + + + + parameter + + id + ppm + + + _enabled + True + + + label + ppm + + + value + 0 + + + type + eng_float + + + short_id + + + + alias + + + + _coordinate + (487, 22) + + + _rotation + 0 + + + + parameter + + id + samp_rate + + + _enabled + True + + + label + samp_rate + + + value + 1625000.0/6.0*4.0 + + + type + eng_float + + + short_id + + + + alias + + + + _coordinate + (368, 19) + + + _rotation + 0 + + + + parameter + + id + fc + + + _enabled + True + + + label + fc + + + value + 936.6e6 + + + type + eng_float + + + short_id + + + + alias + + + + _coordinate + (274, 19) + + + _rotation + 0 + + + + import + + id + math_imp + + + _enabled + True + + + import + import math + + + alias + + + + _coordinate + (11, 125) + + + _rotation + 0 + + + + blocks_multiply_const_vxx + + id + blocks_multiply_const_vxx_0 + + + _enabled + True + + + type + float + + + const + fc/samp_rate*(2*math.pi) + + + vlen + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (571, 335) + + + _rotation + 0 + + + + blocks_add_const_vxx + + id + blocks_add_const_vxx_0 + + + _enabled + True + + + type + float + + + const + 1 + + + vlen + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (779, 217) + + + _rotation + 0 + + + + blocks_multiply_const_vxx + + id + blocks_multiply_const_vxx_0_0 + + + _enabled + True + + + type + float + + + const + 1.0/1.0e6 + + + vlen + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (405, 217) + + + _rotation + 0 + + + + pad_source + + id + pad_source_0 + + + _enabled + True + + + label + in + + + type + complex + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + _coordinate + (13, 301) + + + _rotation + 0 + + + + pad_sink + + id + pad_sink_1 + + + _enabled + True + + + label + out + + + type + complex + + + vlen + 1 + + + num_streams + 1 + + + optional + False + + + _coordinate + (1174, 335) + + + _rotation + 0 + + + + fractional_resampler_xx + + id + fractional_resampler_xx_0 + + + _enabled + True + + + type + complex + + + phase_shift + 0 + + + resamp_ratio + 1 + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (986, 322) + + + _rotation + 0 + + + + pad_source + + id + ppm_msg + + + _enabled + True + + + label + ppm_msg + + + type + message + + + vlen + 1 + + + num_streams + 1 + + + optional + True + + + _coordinate + (15, 217) + + + _rotation + 0 + + + + gsm_controlled_const_source_f + + id + gsm_controlled_const_source_f_0 + + + _enabled + True + + + constant + ppm + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (183, 217) + + + _rotation + 0 + + + + gsm_controlled_rotator_cc + + id + gsm_controlled_rotator_cc_0 + + + _enabled + True + + + phase_inc + 0 + + + samp_rate + samp_rate + + + alias + + + + affinity + + + + minoutbuf + 0 + + + maxoutbuf + 0 + + + _coordinate + (759, 305) + + + _rotation + 0 + + + + gsm_controlled_const_source_f_0 + blocks_multiply_const_vxx_0_0 + 0 + 0 + + + pad_source_0 + gsm_controlled_rotator_cc_0 + 0 + 0 + + + blocks_multiply_const_vxx_0_0 + blocks_multiply_const_vxx_0 + 0 + 0 + + + blocks_add_const_vxx_0 + fractional_resampler_xx_0 + 0 + 1 + + + gsm_controlled_rotator_cc_0 + fractional_resampler_xx_0 + 0 + 0 + + + blocks_multiply_const_vxx_0 + gsm_controlled_rotator_cc_0 + 0 + 1 + + + blocks_multiply_const_vxx_0_0 + blocks_add_const_vxx_0 + 0 + 0 + + + fractional_resampler_xx_0 + pad_sink_1 + 0 + 0 + + + ppm_msg + gsm_controlled_const_source_f_0 + 0 + constant_msg + + -- cgit v1.2.3