repeater offset debugging UHFSDR QRP2000

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

repeater offset debugging UHFSDR QRP2000

kc7noa
 Nah ... that's kbara on 147.38+ and IEVHF on 146.88-
  --- interesting that it's a diference of 500Khz .... repeater offset should be 600Khz ...

my quisk_conf.py contains as its last line

do_repeater_offset = True

this is an output after i added some more debug lines to the debug IF statment ..

odroid@odroid:~/Downloads/quisk7$ python quisk.py
Startup freq 7050000
Run freq 7050000
Address 0x55
Smooth tune 3500
RepeaterOffset True     <----- Jim , shouldn't this be a value that's in the offset field of favourites ? not "true"
Traceback (most recent call last):
  File "quisk.py", line 4344, in <module>
    main()
  File "quisk.py", line 4340, in main
    App()
  File "quisk.py", line 2456, in __init__
    wx.App.__init__(self, redirect=False)
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "quisk.py", line 2828, in OnInit
    self.config_text = Hardware.open()
  File "./softrock/hardware_usb.py", line 86, in open
    print ('do_repeater_offset', self.do_repeater_offset())    <----- im not sure why this happened really, im no code'r ...
AttributeError: Hardware instance has no attribute 'do_repeater_offset'
odroid@odroid:~/Downloads/quisk7$
Reply | Threaded
Open this post in threaded view
|

Re: repeater offset debugging UHFSDR QRP2000

kc7noa
Startup freq 7050000
Run freq 146875000
Address 0x55
Smooth tune 3500
None khz offset1
RepeaterOffset True
Change to 146875000
Run freq 146875000
0 khz offset1
repeater input freq
0 khz offsetA
0 khz offset1
repeater input freq
0 khz offsetA



starting at line 109 in hardware_usb.py

I added a few print statements trying to see whats going on ... either offset is not being passed to hardware_usb.py properly i think ***** note that "print (offset, 'khz offset1')" returns 0 makes me think that offset is not passed from quisk properly.


def RepeaterOffset(self, offset=None): # Change frequency for repeater offset during Tx
    print (offset, 'khz offset1')
    if offset is None: # Return True if frequency change is complete
      if time.time() > self.repeater_time0 + self.repeater_delay:
        return True
    elif offset == 0: # Change back to the original frequency
      if self.repeater_freq is not None:
        self.repeater_time0 = time.time()
        self.ChangeFrequency(self.repeater_freq, self.repeater_freq, 'repeater')
        self.repeater_freq = None
print ('change back to original repeater output')
    else: # Shift to repeater input frequency
      print('offset5',offset)
      self.repeater_time0 = time.time()
      self.repeater_freq = self.vfo
      print (offset, 'khz offsetB')
      vfo = self.vfo + int(offset * 1000) # Convert kHz to Hz
      self.ChangeFrequency(vfo, vfo, 'repeater')
    print ('repeater input freq')
#    print (vfo)         ## <------ this print made quisk lockup
    print (offset, 'khz offsetA')
    return False

Reply | Threaded
Open this post in threaded view
|

Re: repeater offset debugging UHFSDR QRP2000

kc7noa
crud .. just noticed that

print ('change back to original repeater output')

is not properly indented ..... that might mess things up .....

SIGH
Reply | Threaded
Open this post in threaded view
|

Re: repeater offset debugging UHFSDR QRP2000

kc7noa
ok .. dont know why it looks that way on the message board .. but when using nano and gedit with line numbers it has the correct indent ...

as you can see offsetB is never printed .. as if the last else statment is never reached ....