From 4ad7a01be4341eda118993c61fa0a7b93d793fe5 Mon Sep 17 00:00:00 2001 From: max Date: Thu, 2 Jun 2011 20:39:40 +0000 Subject: [PATCH] autoreset speed to 4800 for correlation git-svn-id: http://op25.osmocom.org/svn/trunk@288 65a5c917-d112-43f1-993d-58c26a4786be --- repeater/src/python/scope.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/repeater/src/python/scope.py b/repeater/src/python/scope.py index 8e08964..4f4ce3e 100755 --- a/repeater/src/python/scope.py +++ b/repeater/src/python/scope.py @@ -107,6 +107,7 @@ class p25_rx_block (stdgui2.std_top_block): for i in xrange(len(speeds)): if speeds[i] == _default_speed: self.current_speed = i + self.default_speed_idx = i # initialize the UI # @@ -304,7 +305,7 @@ class p25_rx_block (stdgui2.std_top_block): # assumes that lock is held, or that we are in init self.disconnect_demods() self.current_speed = new_speed - self.connect_demods() + self.connect_fsk4_demod() def set_speed_old(self, new_speed): global speeds @@ -395,8 +396,11 @@ class p25_rx_block (stdgui2.std_top_block): self.connect_demods() self.set_connection(fscope=1) if sel == 5: # correlation - self.set_connection(corr=1) + self.disconnect_demods() + self.current_speed = self.default_speed_idx # reset speed for corr + self.data_scope.win.radio_box_speed.SetSelection(self.current_speed) self.connect_fsk4_demod() + self.set_connection(corr=1) self.unlock() # initialize the UI @@ -968,7 +972,6 @@ class p25_rx_block (stdgui2.std_top_block): def speed_select(self, evt): new_speed = self.data_scope.win.radio_box_speed.GetSelection() - print "new_speed %d " % new_speed self.lock() self.set_speed(new_speed) self.unlock()