summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormax <max@65a5c917-d112-43f1-993d-58c26a4786be>2011-06-02 20:39:40 +0000
committermax <max@65a5c917-d112-43f1-993d-58c26a4786be>2011-06-02 20:39:40 +0000
commit4ad7a01be4341eda118993c61fa0a7b93d793fe5 (patch)
treec43ec39dcfa4121ea3485a066a81fb864843ffb6
parente6c74004795703024fb3bb25f81a0e37829b0cd8 (diff)
autoreset speed to 4800 for correlation
git-svn-id: http://op25.osmocom.org/svn/trunk@288 65a5c917-d112-43f1-993d-58c26a4786be
-rwxr-xr-xrepeater/src/python/scope.py9
1 files 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()