From f5881fc49a1d8f7867852c787f55cdb90ac06278 Mon Sep 17 00:00:00 2001 From: tvoid Date: Mon, 7 Apr 2008 22:36:31 -0600 Subject: working tune delay test --- gsm-tvoid/src/python/gsm_scan.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gsm-tvoid/src/python') diff --git a/gsm-tvoid/src/python/gsm_scan.py b/gsm-tvoid/src/python/gsm_scan.py index cc3c2d6..51ff92e 100755 --- a/gsm-tvoid/src/python/gsm_scan.py +++ b/gsm-tvoid/src/python/gsm_scan.py @@ -36,16 +36,16 @@ class burst_callback(gr.feval_ll): try: #print "burst_callback: ", x, "\n"; if gsm.BURST_CB_ADJ_OFFSET == x: + return 0 #TODO: rework so this will work on file input last_offset = self.fg.burst.last_freq_offset() - if last_offset < 200.0: - return 0 - - self.fg.offset -= last_offset - print "burst_callback: ADJ_OFFSET:", last_offset, " ARFCN: ", self.fg.arfcn, "\n"; - self.fg.set_channel(self.fg.arfcn) + if 20000.0 > abs(last_offset) > 200.0: + self.fg.offset -= last_offset + print "burst_callback: ADJ_OFFSET:", last_offset, " ARFCN: ", self.fg.arfcn, "\n"; + self.fg.set_channel(self.fg.arfcn) elif gsm.BURST_CB_TUNE == x: + print "burst_callback: BURST_CB_TUNE: ARFCN: ", self.fg.burst.next_arfcn, "\n"; self.fg.set_channel(self.fg.burst.next_arfcn) return 0 -- cgit v1.2.3