From e25e7be4885a142f78072b3172c9efaad3d9c100 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 14 Nov 2019 22:40:19 -0500 Subject: [PATCH] add frequency error tracking option --- op25/gr-op25_repeater/apps/rx.py | 6 ++++-- op25/gr-op25_repeater/www/www-static/index.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/op25/gr-op25_repeater/apps/rx.py b/op25/gr-op25_repeater/apps/rx.py index 597b010..995f848 100755 --- a/op25/gr-op25_repeater/apps/rx.py +++ b/op25/gr-op25_repeater/apps/rx.py @@ -2,7 +2,7 @@ # Copyright 2008-2011 Steve Glass # -# Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Max H. Parke KA1RBI +# Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Max H. Parke KA1RBI # # Copyright 2003,2004,2005,2006 Free Software Foundation, Inc. # (from radiorausch) @@ -393,7 +393,8 @@ class p25_rx_block (gr.top_block): freq = params['freq'] offset = self.options.offset center_freq = params['center_frequency'] - self.error_tracking() + if self.options.freq_error_tracking: + self.error_tracking() self.last_change_freq = freq self.last_change_freq_at = time.time() @@ -755,6 +756,7 @@ class rx_main(object): parser.add_option("-N", "--gains", type="string", default=None, help="gain settings") parser.add_option("-O", "--audio-output", type="string", default="default", help="audio output device name") parser.add_option("-x", "--audio-gain", type="eng_float", default="1.0", help="audio gain (default = 1.0)") + parser.add_option("-X", "--freq-error-tracking", action="store_true", default=False, help="enable experimental frequency error tracking") parser.add_option("-U", "--udp-player", action="store_true", default=False, help="enable built-in udp audio player") parser.add_option("-q", "--freq-corr", type="eng_float", default=0.0, help="frequency correction") parser.add_option("-d", "--fine-tune", type="eng_float", default=0.0, help="fine tuning") diff --git a/op25/gr-op25_repeater/www/www-static/index.html b/op25/gr-op25_repeater/www/www-static/index.html index c2c7cfb..90b38cb 100644 --- a/op25/gr-op25_repeater/www/www-static/index.html +++ b/op25/gr-op25_repeater/www/www-static/index.html @@ -21,7 +21,7 @@ -
  • © 2017, 2018 Max H. Parke KA1RBI
  • +
  • © 2017-2019 Max H. Parke KA1RBI