コード例 #1
0
ファイル: quisk_conf_8600.py プロジェクト: drowe67/quisk
 def ChangeFrequency(self,
                     tx_freq,
                     vfo_freq,
                     source='',
                     band='',
                     event=None):
     self.tx_freq = tx_freq
     try:
         rpt = self.repeaters[tx_freq]
     except KeyError:
         self.application.bottom_widgets.UpdateText('')
     else:
         self.application.bottom_widgets.UpdateText(rpt)
     if vfo_freq != self.vfo_frequency and vfo_freq >= 10000:
         self.vfo_frequency = vfo_freq
         # Calculate new AR8600 and hardware frequencies
         ar8600 = (vfo_freq + 50000) // 100000 * 100000 - 200000
         if self.ar8600_frequency != ar8600:
             self.ar8600_frequency = ar8600
             self.SendAR8600('RF%010d\r' % ar8600)
             if ar8600 < 1040000000:
                 self.invert = 1
             else:
                 self.invert = 0
             QS.invert_spectrum(self.invert)
         if self.invert:
             hware = self.offset - vfo_freq + self.ar8600_frequency
         else:
             hware = self.offset + vfo_freq - self.ar8600_frequency
         if self.hware_frequency != hware:
             self.hware_frequency = hware
             BaseHardware.ChangeFrequency(self, 0, hware)
         #print 'AR8600 Hware', self.ar8600_frequency, self.hware_frequency
     return tx_freq, vfo_freq
コード例 #2
0
 def ChangeFrequency(self,
                     tx_freq,
                     vfo_freq,
                     source='',
                     band='',
                     event=None):
     self.ChangeFilterFrequency(tx_freq)
     return BaseHw.ChangeFrequency(self, tx_freq, vfo_freq, source, band,
                                   event)
コード例 #3
0
 def ChangeFrequency(self,
                     tx_freq,
                     vfo_freq,
                     source='',
                     band='',
                     event=None):
     if source == 'MouseBtn1' and self.application.mode in (
             'LSB', 'USB', 'AM', 'FM', 'FDV-U', 'FDV-L'):
         tx_freq = (tx_freq + 500) // 1000 * 1000
     self.ChangeFilterFrequency(tx_freq)
     return BaseHw.ChangeFrequency(self, tx_freq, vfo_freq, source, band,
                                   event)