[chirp_devel] [PATCH 1 of 3] Fix style issues in ft817.py
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1425298395 -3600 # Mon Mar 02 13:13:15 2015 +0100 # Node ID bf8e866256f039aaf1b97c21366bbef26ec5cc8b # Parent 9deae1ac816a7a0efd7a754b8e50546f95a97b1a Fix style issues in ft817.py
This patch brings ft817.py into conformance with PEP8 rules and removes it from the blacklist.
improves #2355
diff --git a/chirp/ft817.py b/chirp/ft817.py --- a/chirp/ft817.py +++ b/chirp/ft817.py @@ -22,13 +22,15 @@ RadioSettingValueInteger, RadioSettingValueList, \ RadioSettingValueBoolean, RadioSettingValueString, \ RadioSettings -import time, os, logging +import time +import logging from textwrap import dedent
LOG = logging.getLogger(__name__)
CMD_ACK = 0x06
+ @directory.register class FT817Radio(yaesu_clone.YaesuCloneModeRadio): """Yaesu FT-817""" @@ -40,7 +42,7 @@ DUPLEX = ["", "-", "+", "split"] # narrow modes has to be at end MODES = ["LSB", "USB", "CW", "CWR", "AM", "FM", "DIG", "PKT", "NCW", - "NCWR", "NFM"] + "NCWR", "NFM"] TMODES = ["", "Tone", "TSQL", "DTCS"] STEPSFM = [5.0, 6.25, 10.0, 12.5, 15.0, 20.0, 25.0, 50.0] STEPSAM = [2.5, 5.0, 9.0, 10.0, 12.5, 25.0] @@ -213,10 +215,9 @@ struct mem_struct sixtymeterchannels[5]; """ _CALLSIGN_CHARSET = [chr(x) for x in range(ord("0"), ord("9") + 1) + - range(ord("A"), ord("Z") + 1) + - [ord(" ")]] + range(ord("A"), ord("Z") + 1) + [ord(" ")]] _CALLSIGN_CHARSET_REV = dict(zip(_CALLSIGN_CHARSET, - range(0, len(_CALLSIGN_CHARSET)))) + range(0, len(_CALLSIGN_CHARSET))))
# WARNING Index are hard wired in memory management code !!! SPECIAL_MEMORIES = { @@ -307,19 +308,20 @@ if checksum.get_existing(data) != \ checksum.get_calculated(data): raise Exception("Checksum Failed [%02X<>%02X] block %02X" % - (checksum.get_existing(data), - checksum.get_calculated(data), blocknum)) + (checksum.get_existing(data), + checksum.get_calculated(data), blocknum)) # Chew away the block number and the checksum data = data[1:block + 1] else: if lastblock and self._US_model: raise Exception(_("Unable to read last block. " - "This often happens when the selected model is US " - "but the radio is a non-US one (or widebanded). " - "Please choose the correct model and try again.")) + "This often happens when the selected model " + "is US but the radio is a non-US one (or " + "widebanded). Please choose the correct " + "model and try again.")) else: - raise Exception("Unable to read block %02X expected %i got %i" % - (blocknum, block + 2, len(data))) + raise Exception("Unable to read block %02X expected %i got %i" + % (blocknum, block + 2, len(data)))
LOG.debug("Read %i" % len(data)) return data @@ -360,7 +362,6 @@ "but the radio is a US one. " "Please choose the correct model and try again."))
- print "Clone completed in %i seconds" % (time.time() - start)
return memmap.MemoryMap(data) @@ -383,8 +384,8 @@ for _i in range(0, repeat): time.sleep(0.01) checksum = yaesu_clone.YaesuChecksum(pos, pos + block - 1) - LOG.debug("Block %i - will send from %i to %i byte " % \ - (blocks, pos, pos + block)) + LOG.debug("Block %i - will send from %i to %i byte " % + (blocks, pos, pos + block)) LOG.debug(util.hexprint(chr(blocks))) LOG.debug(util.hexprint(self.get_mmap()[pos:pos + block])) LOG.debug(util.hexprint(chr(checksum.get_calculated( @@ -537,7 +538,7 @@ return mem
def _set_special(self, mem): - if mem.empty and not mem.number in self.SPECIAL_PMS.values(): + if mem.empty and mem.number not in self.SPECIAL_PMS.values(): # can't delete special memories! raise Exception("Sorry, special memory can't be deleted")
@@ -589,9 +590,9 @@ def _get_normal(self, number): _mem = self._memobj.memory[number - 1] used = (self._memobj.visible[(number - 1) / 8] >> (number - 1) % 8) \ - & 0x01 + & 0x01 valid = (self._memobj.filled[(number - 1) / 8] >> (number - 1) % 8) \ - & 0x01 + & 0x01
mem = chirp_common.Memory() mem.number = number @@ -605,9 +606,9 @@ def _set_normal(self, mem): _mem = self._memobj.memory[mem.number - 1] wasused = (self._memobj.visible[(mem.number - 1) / 8] >> - (mem.number - 1) % 8) & 0x01 + (mem.number - 1) % 8) & 0x01 wasvalid = (self._memobj.filled[(mem.number - 1) / 8] >> - (mem.number - 1) % 8) & 0x01 + (mem.number - 1) % 8) & 0x01
if mem.empty: if mem.number == 1: @@ -680,8 +681,8 @@ return mem
def _set_memory(self, mem, _mem): - if len(mem.name) > 0: # not supported in chirp - # so I make label visible if have one + if len(mem.name) > 0: # not supported in chirp + # so I make label visible if have one _mem.tag_on_off = 1 else: _mem.tag_on_off = 0 @@ -763,250 +764,303 @@ panelcontr = RadioSettingGroup("panelcontr", "Panel controls")
top = RadioSettings(basic, cw, packet, - panelcontr, panel, extended, antenna) + panelcontr, panel, extended, antenna)
rs = RadioSetting("ars_144", "144 ARS", - RadioSettingValueBoolean(_settings.ars_144)) + RadioSettingValueBoolean(_settings.ars_144)) basic.append(rs) rs = RadioSetting("ars_430", "430 ARS", - RadioSettingValueBoolean(_settings.ars_430)) + RadioSettingValueBoolean(_settings.ars_430)) basic.append(rs) rs = RadioSetting("pkt9600_mic", "Paket 9600 mic level", - RadioSettingValueInteger(0, 100, _settings.pkt9600_mic)) + RadioSettingValueInteger(0, 100, + _settings.pkt9600_mic)) packet.append(rs) options = ["enable", "disable"] rs = RadioSetting("disable_amfm_dial", "AM&FM Dial", - RadioSettingValueList(options, - options[_settings.disable_amfm_dial])) + RadioSettingValueList(options, + options[ + _settings.disable_amfm_dial + ])) panel.append(rs) rs = RadioSetting("am_mic", "AM mic level", - RadioSettingValueInteger(0, 100, _settings.am_mic)) + RadioSettingValueInteger(0, 100, _settings.am_mic)) basic.append(rs) options = ["OFF", "1h", "2h", "3h", "4h", "5h", "6h"] rs = RadioSetting("apo_time", "APO time", - RadioSettingValueList(options, options[_settings.apo_time])) + RadioSettingValueList(options, + options[_settings.apo_time])) basic.append(rs) options = ["OFF", "Range", "All"] rs = RadioSetting("arts_beep", "ARTS beep", - RadioSettingValueList(options, options[_settings.arts_beep])) + RadioSettingValueList(options, + options[_settings.arts_beep])) basic.append(rs) options = ["OFF", "ON", "Auto"] rs = RadioSetting("backlight", "Backlight", - RadioSettingValueList(options, options[_settings.backlight])) + RadioSettingValueList(options, + options[_settings.backlight])) panel.append(rs) options = ["6h", "8h", "10h"] rs = RadioSetting("batt_chg", "Battery charge", - RadioSettingValueList(options, options[_settings.batt_chg])) + RadioSettingValueList(options, + options[_settings.batt_chg])) basic.append(rs) options = ["440Hz", "880Hz"] rs = RadioSetting("beep_freq", "Beep frequency", - RadioSettingValueList(options, options[_settings.beep_freq])) + RadioSettingValueList(options, + options[_settings.beep_freq])) panel.append(rs) rs = RadioSetting("beep_volume", "Beep volume", - RadioSettingValueInteger(0, 100, _settings.beep_volume)) + RadioSettingValueInteger(0, 100, + _settings.beep_volume)) panel.append(rs) options = ["4800", "9600", "38400"] rs = RadioSetting("cat_rate", "CAT rate", - RadioSettingValueList(options, options[_settings.cat_rate])) + RadioSettingValueList(options, + options[_settings.cat_rate])) basic.append(rs) options = ["Blue", "Amber", "Violet"] rs = RadioSetting("color", "Color", - RadioSettingValueList(options, options[_settings.color])) + RadioSettingValueList(options, + options[_settings.color])) panel.append(rs) rs = RadioSetting("contrast", "Contrast", - RadioSettingValueInteger(1, 12, _settings.contrast - 1)) + RadioSettingValueInteger(1, 12, + _settings.contrast - 1)) panel.append(rs) rs = RadioSetting("cw_delay", "CW delay (*10 ms)", - RadioSettingValueInteger(1, 250, _settings.cw_delay)) + RadioSettingValueInteger(1, 250, + _settings.cw_delay)) cw.append(rs) rs = RadioSetting("cw_id", "CW id", - RadioSettingValueBoolean(_settings.cw_id)) + RadioSettingValueBoolean(_settings.cw_id)) cw.append(rs) options = ["Normal", "Reverse"] rs = RadioSetting("cw_paddle", "CW paddle", - RadioSettingValueList(options, options[_settings.cw_paddle])) + RadioSettingValueList(options, + options[_settings.cw_paddle])) cw.append(rs) options = ["%i Hz" % i for i in range(300, 1001, 50)] rs = RadioSetting("cw_pitch", "CW pitch", - RadioSettingValueList(options, options[_settings.cw_pitch])) + RadioSettingValueList(options, + options[_settings.cw_pitch])) cw.append(rs) options = ["%i wpm" % i for i in range(4, 61)] rs = RadioSetting("cw_speed", "CW speed", - RadioSettingValueList(options, options[_settings.cw_speed])) + RadioSettingValueList(options, + options[_settings.cw_speed])) cw.append(rs) options = ["1:%1.1f" % (i / 10) for i in range(25, 46, 1)] rs = RadioSetting("cw_weight", "CW weight", - RadioSettingValueList(options, options[_settings.cw_weight])) + RadioSettingValueList(options, + options[_settings.cw_weight])) cw.append(rs) rs = RadioSetting("dig_disp", "Dig disp (*10 Hz)", - RadioSettingValueInteger(-300, 300, _settings.dig_disp)) + RadioSettingValueInteger(-300, 300, + _settings.dig_disp)) packet.append(rs) rs = RadioSetting("dig_mic", "Dig mic", - RadioSettingValueInteger(0, 100, _settings.dig_mic)) + RadioSettingValueInteger(0, 100, + _settings.dig_mic)) packet.append(rs) options = ["RTTY", "PSK31-L", "PSK31-U", "USER-L", "USER-U"] rs = RadioSetting("dig_mode", "Dig mode", - RadioSettingValueList(options, options[_settings.dig_mode])) + RadioSettingValueList(options, + options[_settings.dig_mode])) packet.append(rs) rs = RadioSetting("dig_shift", "Dig shift (*10 Hz)", - RadioSettingValueInteger(-300, 300, _settings.dig_shift)) + RadioSettingValueInteger(-300, 300, + _settings.dig_shift)) packet.append(rs) rs = RadioSetting("fm_mic", "FM mic", - RadioSettingValueInteger(0, 100, _settings.fm_mic)) + RadioSettingValueInteger(0, 100, + _settings.fm_mic)) basic.append(rs) options = ["Dial", "Freq", "Panel"] rs = RadioSetting("lock_mode", "Lock mode", - RadioSettingValueList(options, options[_settings.lock_mode])) + RadioSettingValueList(options, + options[_settings.lock_mode])) panel.append(rs) options = ["Fine", "Coarse"] rs = RadioSetting("main_step", "Main step", - RadioSettingValueList(options, options[_settings.main_step])) + RadioSettingValueList(options, + options[_settings.main_step])) panel.append(rs) rs = RadioSetting("mem_group", "Mem group", - RadioSettingValueBoolean(_settings.mem_group)) + RadioSettingValueBoolean(_settings.mem_group)) basic.append(rs) rs = RadioSetting("mic_key", "Mic key", - RadioSettingValueBoolean(_settings.mic_key)) + RadioSettingValueBoolean(_settings.mic_key)) cw.append(rs) rs = RadioSetting("mic_scan", "Mic scan", - RadioSettingValueBoolean(_settings.mic_scan)) + RadioSettingValueBoolean(_settings.mic_scan)) basic.append(rs) options = ["Off", "SSB", "CW"] rs = RadioSetting("op_filter", "Optional filter", - RadioSettingValueList(options, options[_settings.op_filter])) + RadioSettingValueList(options, + options[_settings.op_filter])) basic.append(rs) rs = RadioSetting("pkt_mic", "Packet mic", - RadioSettingValueInteger(0, 100, _settings.pkt_mic)) + RadioSettingValueInteger(0, 100, _settings.pkt_mic)) packet.append(rs) options = ["1200", "9600"] rs = RadioSetting("pkt_rate", "Packet rate", - RadioSettingValueList(options, options[_settings.pkt_rate])) + RadioSettingValueList(options, + options[_settings.pkt_rate])) packet.append(rs) options = ["Off", "3 sec", "5 sec", "10 sec"] rs = RadioSetting("resume_scan", "Resume scan", - RadioSettingValueList(options, options[_settings.resume_scan])) + RadioSettingValueList(options, + options[_settings.resume_scan]) + ) basic.append(rs) options = ["Cont", "Chk"] rs = RadioSetting("scope", "Scope", - RadioSettingValueList(options, options[_settings.scope])) + RadioSettingValueList(options, + options[_settings.scope])) basic.append(rs) rs = RadioSetting("sidetone", "Sidetone", - RadioSettingValueInteger(0, 100, _settings.sidetone)) + RadioSettingValueInteger(0, 100, _settings.sidetone)) cw.append(rs) options = ["RF-Gain", "Squelch"] rs = RadioSetting("sql_rf_gain", "Squelch/RF-Gain", - RadioSettingValueList(options, options[_settings.sql_rf_gain])) + RadioSettingValueList(options, + options[_settings.sql_rf_gain]) + ) panel.append(rs) rs = RadioSetting("ssb_mic", "SSB Mic", - RadioSettingValueInteger(0, 100, _settings.ssb_mic)) + RadioSettingValueInteger(0, 100, _settings.ssb_mic)) basic.append(rs) options = ["%i" % i for i in range(0, 21)] options[0] = "Off" rs = RadioSetting("tot_time", "Time-out timer", - RadioSettingValueList(options, options[_settings.tot_time])) + RadioSettingValueList(options, + options[_settings.tot_time])) basic.append(rs) rs = RadioSetting("vox_delay", "VOX delay (*100 ms)", - RadioSettingValueInteger(1, 25, _settings.vox_delay)) + RadioSettingValueInteger(1, 25, _settings.vox_delay)) basic.append(rs) rs = RadioSetting("vox_gain", "VOX Gain", - RadioSettingValueInteger(0, 100, _settings.vox_gain)) + RadioSettingValueInteger(0, 100, _settings.vox_gain)) basic.append(rs) rs = RadioSetting("extended_menu", "Extended menu", - RadioSettingValueBoolean(_settings.extended_menu)) + RadioSettingValueBoolean(_settings.extended_menu)) extended.append(rs) options = ["Tn-Rn", "Tn-Riv", "Tiv-Rn", "Tiv-Riv"] rs = RadioSetting("dcs_inv", "DCS coding", - RadioSettingValueList(options, options[_settings.dcs_inv])) + RadioSettingValueList(options, + options[_settings.dcs_inv])) extended.append(rs) rs = RadioSetting("r_lsb_car", "LSB Rx carrier point (*10 Hz)", - RadioSettingValueInteger(-30, 30, _settings.r_lsb_car)) + RadioSettingValueInteger(-30, 30, + _settings.r_lsb_car)) extended.append(rs) rs = RadioSetting("r_usb_car", "USB Rx carrier point (*10 Hz)", - RadioSettingValueInteger(-30, 30, _settings.r_usb_car)) + RadioSettingValueInteger(-30, 30, + _settings.r_usb_car)) extended.append(rs) rs = RadioSetting("t_lsb_car", "LSB Tx carrier point (*10 Hz)", - RadioSettingValueInteger(-30, 30, _settings.t_lsb_car)) + RadioSettingValueInteger(-30, 30, + _settings.t_lsb_car)) extended.append(rs) rs = RadioSetting("t_usb_car", "USB Tx carrier point (*10 Hz)", - RadioSettingValueInteger(-30, 30, _settings.t_usb_car)) + RadioSettingValueInteger(-30, 30, + _settings.t_usb_car)) extended.append(rs)
options = ["Hi", "L3", "L2", "L1"] rs = RadioSetting("tx_power", "TX power", - RadioSettingValueList(options, options[_settings.tx_power])) + RadioSettingValueList(options, + options[_settings.tx_power])) basic.append(rs)
options = ["Front", "Rear"] rs = RadioSetting("hf_antenna", "HF", - RadioSettingValueList(options, options[_settings.hf_antenna])) + RadioSettingValueList(options, + options[_settings.hf_antenna])) antenna.append(rs) rs = RadioSetting("sixm_antenna", "6M", - RadioSettingValueList(options, - options[_settings.sixm_antenna])) + RadioSettingValueList(options, + options[_settings.sixm_antenna] + )) antenna.append(rs) rs = RadioSetting("bc_antenna", "Broadcasting", - RadioSettingValueList(options, options[_settings.bc_antenna])) + RadioSettingValueList(options, + options[_settings.bc_antenna])) antenna.append(rs) rs = RadioSetting("air_antenna", "Air band", - RadioSettingValueList(options, options[_settings.air_antenna])) + RadioSettingValueList(options, + options[_settings.air_antenna]) + ) antenna.append(rs) rs = RadioSetting("vhf_antenna", "VHF", - RadioSettingValueList(options, options[_settings.vhf_antenna])) + RadioSettingValueList(options, + options[_settings.vhf_antenna]) + ) antenna.append(rs) rs = RadioSetting("uhf_antenna", "UHF", - RadioSettingValueList(options, options[_settings.uhf_antenna])) + RadioSettingValueList(options, + options[_settings.uhf_antenna]) + ) antenna.append(rs)
st = RadioSettingValueString(0, 7, ''.join([self._CALLSIGN_CHARSET[x] - for x in self._memobj.callsign])) + for x in self._memobj.callsign])) st.set_charset(self._CALLSIGN_CHARSET) rs = RadioSetting("callsign", "Callsign", st) cw.append(rs)
rs = RadioSetting("spl", "Split", - RadioSettingValueBoolean(_settings.spl)) + RadioSettingValueBoolean(_settings.spl)) panelcontr.append(rs) options = ["None", "Up", "Down"] rs = RadioSetting("scn_mode", "Scan mode", - RadioSettingValueList(options, options[_settings.scn_mode])) + RadioSettingValueList(options, + options[_settings.scn_mode])) panelcontr.append(rs) rs = RadioSetting("pri", "Priority", - RadioSettingValueBoolean(_settings.pri)) + RadioSettingValueBoolean(_settings.pri)) panelcontr.append(rs) rs = RadioSetting("dw", "Dual watch", - RadioSettingValueBoolean(_settings.dw)) + RadioSettingValueBoolean(_settings.dw)) panelcontr.append(rs) rs = RadioSetting("art", "Auto-range transponder", - RadioSettingValueBoolean(_settings.art)) + RadioSettingValueBoolean(_settings.art)) panelcontr.append(rs) rs = RadioSetting("nb", "Noise blanker", - RadioSettingValueBoolean(_settings.nb)) + RadioSettingValueBoolean(_settings.nb)) panelcontr.append(rs) options = ["Auto", "Fast", "Slow", "Off"] rs = RadioSetting("agc", "AGC", - RadioSettingValueList(options, options[_settings.agc])) + RadioSettingValueList(options, options[_settings.agc] + )) panelcontr.append(rs) options = ["PWR", "ALC", "SWR", "MOD"] rs = RadioSetting("pwr_meter_mode", "Power meter mode", - RadioSettingValueList(options, - options[_settings.pwr_meter_mode])) + RadioSettingValueList(options, + options[ + _settings.pwr_meter_mode + ])) panelcontr.append(rs) rs = RadioSetting("vox", "Vox", - RadioSettingValueBoolean(_settings.vox)) + RadioSettingValueBoolean(_settings.vox)) panelcontr.append(rs) rs = RadioSetting("bk", "Semi break-in", - RadioSettingValueBoolean(_settings.bk)) + RadioSettingValueBoolean(_settings.bk)) cw.append(rs) rs = RadioSetting("kyr", "Keyer", - RadioSettingValueBoolean(_settings.kyr)) + RadioSettingValueBoolean(_settings.kyr)) cw.append(rs) options = ["enabled", "disabled"] rs = RadioSetting("fst", "Fast", - RadioSettingValueList(options, options[_settings.fst])) + RadioSettingValueList(options, options[_settings.fst] + )) panelcontr.append(rs) options = ["enabled", "disabled"] rs = RadioSetting("lock", "Lock", - RadioSettingValueList(options, options[_settings.lock])) + RadioSettingValueList(options, + options[_settings.lock])) panelcontr.append(rs)
return top @@ -1037,13 +1091,14 @@ elif setting == "callsign": self._memobj.callsign = \ [self._CALLSIGN_CHARSET_REV[x] for x in - str(element.value)] + str(element.value)] else: setattr(obj, setting, element.value) except: print element.get_name() raise
+ @directory.register class FT817NDRadio(FT817Radio): """Yaesu FT-817ND""" @@ -1054,6 +1109,7 @@ # block 9 (130 Bytes long) is to be repeted 40 times _block_lengths = [2, 40, 208, 182, 208, 182, 198, 53, 130, 118, 130]
+ @directory.register class FT817NDUSRadio(FT817Radio): """Yaesu FT-817ND (US version)""" @@ -1088,7 +1144,7 @@ mem.extd_number = number
_mem = self._memobj.sixtymeterchannels[-self.LAST_SPECIAL60M_INDEX + - mem.number] + mem.number]
mem = self._get_memory(mem, _mem)
@@ -1115,7 +1171,7 @@ raise errors.RadioError("Mode {mode} is not valid " "in 60m channels".format(mode=mem.mode)) _mem = self._memobj.sixtymeterchannels[-self.LAST_SPECIAL60M_INDEX + - mem.number] + mem.number] self._set_memory(mem, _mem)
def get_memory(self, number): @@ -1139,6 +1195,7 @@ top = FT817Radio.get_settings(self) basic = top[0] rs = RadioSetting("emergency", "Emergency", - RadioSettingValueBoolean(self._memobj.settings.emergency)) + RadioSettingValueBoolean( + self._memobj.settings.emergency)) basic.append(rs) return top diff --git a/tools/cpep8.blacklist b/tools/cpep8.blacklist --- a/tools/cpep8.blacklist +++ b/tools/cpep8.blacklist @@ -22,7 +22,6 @@ ./chirp/ft50_ll.py ./chirp/ft60.py ./chirp/ft7800.py -./chirp/ft817.py ./chirp/ft857.py ./chirp/ft90.py ./chirp/ftm350.py
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1425300791 -3600 # Mon Mar 02 13:53:11 2015 +0100 # Node ID 0d112e3cf2f951aa31d0b570f772be9aad73c4a0 # Parent bf8e866256f039aaf1b97c21366bbef26ec5cc8b Fix style issues in ft857.py
This patch brings ft857.py into conformance with PEP8 rules and removes it from the blacklist.
improves #2355
diff --git a/chirp/ft857.py b/chirp/ft857.py --- a/chirp/ft857.py +++ b/chirp/ft857.py @@ -21,11 +21,13 @@ RadioSettingValueInteger, RadioSettingValueList, \ RadioSettingValueBoolean, RadioSettingValueString, \ RadioSettings -import os, logging +import os +import logging from textwrap import dedent
LOG = logging.getLogger(__name__)
+ @directory.register class FT857Radio(ft817.FT817Radio): """Yaesu FT-857/897""" @@ -45,7 +47,7 @@ CROSS_MODES = { 0x01: "->Tone", 0x02: "->DTCS", - 0x04 : "Tone->", + 0x04: "Tone->", 0x05: "Tone->Tone", 0x06: "Tone->DTCS", 0x08: "DTCS->", @@ -58,7 +60,7 @@ # block 9 (140 Bytes long) is to be repeted 40 times # should be 42 times but this way I can use original 817 functions _block_lengths = [2, 82, 252, 196, 252, 196, 212, 55, 140, 140, 140, - 38, 176] + 38, 176] # warning ranges has to be in this exact order VALID_BANDS = [(100000, 33000000), (33000000, 56000000), (76000000, 108000000), (108000000, 137000000), @@ -311,12 +313,12 @@ """
_CALLSIGN_CHARSET = [chr(x) for x in range(ord("0"), ord("9") + 1) + - range(ord("A"), ord("Z") + 1)] + [" ", "/"] + range(ord("A"), ord("Z") + 1)] + [" ", "/"] _CALLSIGN_CHARSET_REV = dict(zip(_CALLSIGN_CHARSET, - range(0, len(_CALLSIGN_CHARSET)))) + range(0, len(_CALLSIGN_CHARSET)))) _BEACON_CHARSET = _CALLSIGN_CHARSET + ["+", "."] _BEACON_CHARSET_REV = dict(zip(_BEACON_CHARSET, - range(0, len(_BEACON_CHARSET)))) + range(0, len(_BEACON_CHARSET))))
# WARNING Index are hard wired in memory management code !!! SPECIAL_MEMORIES = { @@ -415,7 +417,7 @@ "37:DIG GAIN", "38:DIG MODE", "39:DIG SHIFT", "40:DIG VOX", "41:DISP COLOR", "42:DISP CONTRAST", "43:DISP INTENSITY", "44:DISP MODE", "45:DSP BPF WIDTH", - "46:DSP HPF CUTOFF", "47:DSP LPF CUTOFF","48:DSP MIC EQ", + "46:DSP HPF CUTOFF", "47:DSP LPF CUTOFF", "48:DSP MIC EQ", "49:DSP NR LEVEL", "50:EMERGENCY", "51:FM MIC GAIN", "52:FM STEP", "53:HOME->VFO", "54:LOCK MODE", "55:MEM GROUP", "56:MEM TAG", "57:MEM/VFO DIAL MODE", @@ -449,7 +451,7 @@ turning the radio on ("CLONE MODE" will appear on the display). 4. Press the [A](RCV) key ("receiving" will appear on the LCD).""" - )) + )) return rp
def get_features(self): @@ -478,8 +480,8 @@ mem.rtone = mem.ctone = chirp_common.TONES[_mem.tone] elif mem.tmode == "TSQL": mem.rtone = mem.ctone = chirp_common.TONES[_mem.tone] - elif mem.tmode == "DTCS Enc": # UI does not support it yet but - # this code has alreay been tested + elif mem.tmode == "DTCS Enc": # UI does not support it yet but + # this code has alreay been tested mem.dtcs = mem.rx_dtcs = chirp_common.DTCS_CODES[_mem.dcs] elif mem.tmode == "DTCS": mem.dtcs = mem.rx_dtcs = chirp_common.DTCS_CODES[_mem.dcs] @@ -531,413 +533,511 @@ panelcontr = RadioSettingGroup("panelcontr", "Panel controls")
top = RadioSettings(basic, cw, packet, - panelcontr, panel, extended) + panelcontr, panel, extended)
rs = RadioSetting("extended_menu", "Extended menu", - RadioSettingValueBoolean(_settings.extended_menu)) + RadioSettingValueBoolean(_settings.extended_menu)) extended.append(rs) rs = RadioSetting("ars_144", "144MHz ARS", - RadioSettingValueBoolean(_settings.ars_144)) + RadioSettingValueBoolean(_settings.ars_144)) basic.append(rs) rs = RadioSetting("ars_430", "430MHz ARS", - RadioSettingValueBoolean(_settings.ars_430)) + RadioSettingValueBoolean(_settings.ars_430)) basic.append(rs) options = ["enable", "disable"] rs = RadioSetting("disable_amfm_dial", "AM&FM Dial", - RadioSettingValueList(options, - options[_settings.disable_amfm_dial])) + RadioSettingValueList(options, + options[ + _settings.disable_amfm_dial + ])) panel.append(rs) rs = RadioSetting("am_mic", "AM mic gain", - RadioSettingValueInteger(0, 100, _settings.am_mic)) + RadioSettingValueInteger(0, 100, _settings.am_mic)) basic.append(rs) options = ["OFF", "1h", "2h", "3h", "4h", "5h", "6h"] rs = RadioSetting("apo_time", "APO time", - RadioSettingValueList(options, options[_settings.apo_time])) + RadioSettingValueList(options, + options[_settings.apo_time])) basic.append(rs) options = ["OFF", "Range", "All"] rs = RadioSetting("arts_beep", "ARTS beep", - RadioSettingValueList(options, options[_settings.arts_beep])) + RadioSettingValueList(options, + options[_settings.arts_beep])) basic.append(rs) rs = RadioSetting("arts_id", "ARTS ID", - RadioSettingValueBoolean(_settings.arts_id)) + RadioSettingValueBoolean(_settings.arts_id)) extended.append(rs) - st = RadioSettingValueString(0, 10, ''.join([self._CALLSIGN_CHARSET[x] - for x in self._memobj.arts_idw])) + st = RadioSettingValueString(0, 10, + ''.join([self._CALLSIGN_CHARSET[x] + for x in self._memobj.arts_idw])) st.set_charset(self._CALLSIGN_CHARSET) rs = RadioSetting("arts_idw", "ARTS IDW", st) extended.append(rs) - st = RadioSettingValueString(0, 40, ''.join([self._BEACON_CHARSET[x] - for x in self._memobj.beacon_text1])) + st = RadioSettingValueString(0, 40, + ''.join([self._BEACON_CHARSET[x] + for x in self._memobj.beacon_text1 + ])) st.set_charset(self._BEACON_CHARSET) rs = RadioSetting("beacon_text1", "Beacon text1", st) extended.append(rs) - st = RadioSettingValueString(0, 40, ''.join([self._BEACON_CHARSET[x] - for x in self._memobj.beacon_text2])) + st = RadioSettingValueString(0, 40, + ''.join([self._BEACON_CHARSET[x] + for x in + self._memobj.beacon_text2])) st.set_charset(self._BEACON_CHARSET) rs = RadioSetting("beacon_text2", "Beacon text2", st) extended.append(rs) - st = RadioSettingValueString(0, 40, ''.join([self._BEACON_CHARSET[x] - for x in self._memobj.beacon_text3])) + st = RadioSettingValueString(0, 40, + ''.join([self._BEACON_CHARSET[x] + for x in + self._memobj.beacon_text3])) st.set_charset(self._BEACON_CHARSET) rs = RadioSetting("beacon_text3", "Beacon text3", st) extended.append(rs) options = ["OFF"] + ["%i sec" % i for i in range(1, 256)] rs = RadioSetting("beacon_time", "Beacon time", - RadioSettingValueList(options, options[_settings.beacon_time])) + RadioSettingValueList(options, + options[_settings.beacon_time]) + ) extended.append(rs) options = ["440Hz", "880Hz", "1760Hz"] rs = RadioSetting("beep_tone", "Beep tone", - RadioSettingValueList(options, options[_settings.beep_tone])) + RadioSettingValueList(options, + options[_settings.beep_tone])) panel.append(rs) rs = RadioSetting("beep_vol", "Beep volume", - RadioSettingValueInteger(0, 100, _settings.beep_vol)) + RadioSettingValueInteger(0, 100, _settings.beep_vol)) panel.append(rs) rs = RadioSetting("r_lsb_car", "LSB Rx carrier point (*10 Hz)", - RadioSettingValueInteger(-30, 30, _settings.r_lsb_car)) + RadioSettingValueInteger(-30, 30, + _settings.r_lsb_car)) extended.append(rs) rs = RadioSetting("r_usb_car", "USB Rx carrier point (*10 Hz)", - RadioSettingValueInteger(-30, 30, _settings.r_usb_car)) + RadioSettingValueInteger(-30, 30, + _settings.r_usb_car)) extended.append(rs) rs = RadioSetting("t_lsb_car", "LSB Tx carrier point (*10 Hz)", - RadioSettingValueInteger(-30, 30, _settings.t_lsb_car)) + RadioSettingValueInteger(-30, 30, + _settings.t_lsb_car)) extended.append(rs) rs = RadioSetting("t_usb_car", "USB Tx carrier point (*10 Hz)", - RadioSettingValueInteger(-30, 30, _settings.t_usb_car)) + RadioSettingValueInteger(-30, 30, + _settings.t_usb_car)) extended.append(rs) options = ["4800", "9600", "38400"] rs = RadioSetting("cat_rate", "CAT rate", - RadioSettingValueList(options, options[_settings.cat_rate])) + RadioSettingValueList(options, + options[_settings.cat_rate])) basic.append(rs) options = ["CAT", "Linear", "Tuner"] rs = RadioSetting("cat_lin_tun", "CAT/LIN/TUN selection", - RadioSettingValueList(options, options[_settings.cat_lin_tun])) + RadioSettingValueList(options, + options[_settings.cat_lin_tun]) + ) extended.append(rs) options = ["MAIN", "VFO/MEM", "CLAR"] - # TODO test the 3 options on non D radio - # which have only SEL and MAIN + # TODO test the 3 options on non D radio + # which have only SEL and MAIN rs = RadioSetting("clar_dial_sel", "Clarifier dial selection", - RadioSettingValueList(options, - options[_settings.clar_dial_sel])) + RadioSettingValueList(options, + options[ + _settings.clar_dial_sel])) panel.append(rs) rs = RadioSetting("cw_auto_mode", "CW Automatic mode", - RadioSettingValueBoolean(_settings.cw_auto_mode)) + RadioSettingValueBoolean(_settings.cw_auto_mode)) cw.append(rs) options = ["USB", "LSB", "AUTO"] rs = RadioSetting("cw_bfo", "CW BFO", - RadioSettingValueList(options, options[_settings.cw_bfo])) + RadioSettingValueList(options, + options[_settings.cw_bfo])) cw.append(rs) options = ["FULL"] + ["%i ms" % (i * 10) for i in range(3, 301)] val = (_settings.cw_delay + _settings.cw_delay_hi * 256) - 2 rs = RadioSetting("cw_delay", "CW delay", - RadioSettingValueList(options, options[val])) + RadioSettingValueList(options, options[val])) cw.append(rs) options = ["Normal", "Reverse"] rs = RadioSetting("cw_key_rev", "CW key reverse", - RadioSettingValueList(options, options[_settings.cw_key_rev])) + RadioSettingValueList(options, + options[_settings.cw_key_rev])) cw.append(rs) rs = RadioSetting("cw_paddle", "CW paddle", - RadioSettingValueBoolean(_settings.cw_paddle)) + RadioSettingValueBoolean(_settings.cw_paddle)) cw.append(rs) options = ["%i Hz" % i for i in range(400, 801, 100)] rs = RadioSetting("cw_pitch", "CW pitch", - RadioSettingValueList(options, options[_settings.cw_pitch])) + RadioSettingValueList(options, + options[_settings.cw_pitch])) cw.append(rs) options = ["%i ms" % i for i in range(5, 31, 5)] rs = RadioSetting("cw_qsk", "CW QSK", - RadioSettingValueList(options, options[_settings.cw_qsk])) + RadioSettingValueList(options, + options[_settings.cw_qsk])) cw.append(rs) rs = RadioSetting("cw_sidetone", "CW sidetone volume", - RadioSettingValueInteger(0, 100, _settings.cw_sidetone)) + RadioSettingValueInteger(0, 100, + _settings.cw_sidetone)) cw.append(rs) options = ["%i wpm" % i for i in range(4, 61)] rs = RadioSetting("cw_speed", "CW speed", - RadioSettingValueList(options, options[_settings.cw_speed])) + RadioSettingValueList(options, + options[_settings.cw_speed])) cw.append(rs) options = ["Numeric", "Alphabet", "AlphaNumeric"] rs = RadioSetting("cw_training", "CW trainig", - RadioSettingValueList(options, options[_settings.cw_training])) + RadioSettingValueList(options, + options[_settings.cw_training]) + ) cw.append(rs) options = ["1:%1.1f" % (i / 10) for i in range(25, 46, 1)] rs = RadioSetting("cw_weight", "CW weight", - RadioSettingValueList(options, options[_settings.cw_weight])) + RadioSettingValueList(options, + options[_settings.cw_weight])) cw.append(rs) options = ["Tn-Rn", "Tn-Riv", "Tiv-Rn", "Tiv-Riv"] rs = RadioSetting("dcs_inv", "DCS inv", - RadioSettingValueList(options, options[_settings.dcs_inv])) + RadioSettingValueList(options, + options[_settings.dcs_inv])) extended.append(rs) options = ["Fine", "Coarse"] rs = RadioSetting("dial_step", "Dial step", - RadioSettingValueList(options, options[_settings.dial_step])) + RadioSettingValueList(options, + options[_settings.dial_step])) panel.append(rs) rs = RadioSetting("dig_disp", "Dig disp (*10 Hz)", - RadioSettingValueInteger(-300, 300, _settings.dig_disp)) + RadioSettingValueInteger(-300, 300, + _settings.dig_disp)) packet.append(rs) rs = RadioSetting("dig_mic", "Dig gain", - RadioSettingValueInteger(0, 100, _settings.dig_mic)) + RadioSettingValueInteger(0, 100, + _settings.dig_mic)) packet.append(rs) options = ["RTTYL", "RTTYU", "PSK31-L", "PSK31-U", "USER-L", "USER-U"] rs = RadioSetting("dig_mode", "Dig mode", - RadioSettingValueList(options, options[_settings.dig_mode])) + RadioSettingValueList(options, + options[_settings.dig_mode])) packet.append(rs) rs = RadioSetting("dig_shift", "Dig shift (*10 Hz)", - RadioSettingValueInteger(-300, 300, _settings.dig_shift)) + RadioSettingValueInteger(-300, 300, + _settings.dig_shift)) packet.append(rs) rs = RadioSetting("dig_vox", "Dig vox", - RadioSettingValueInteger(0, 100, _settings.dig_vox)) + RadioSettingValueInteger(0, 100, _settings.dig_vox)) packet.append(rs) options = ["ARTS", "BAND", "FIX", "MEMGRP", "MODE", "MTR", "VFO"] rs = RadioSetting("disp_color", "Display color mode", - RadioSettingValueList(options, options[_settings.disp_color])) + RadioSettingValueList(options, + options[_settings.disp_color])) panel.append(rs) rs = RadioSetting("disp_color_arts", "Display color ARTS set", - RadioSettingValueInteger(0, 1, _settings.disp_color_arts)) + RadioSettingValueInteger(0, 1, + _settings.disp_color_arts)) panel.append(rs) rs = RadioSetting("disp_color_band", "Display color band set", - RadioSettingValueInteger(0, 1, _settings.disp_color_band)) + RadioSettingValueInteger(0, 1, + _settings.disp_color_band)) panel.append(rs) rs = RadioSetting("disp_color_memgrp", - "Display color memory group set", - RadioSettingValueInteger(0, 1, _settings.disp_color_memgrp)) + "Display color memory group set", + RadioSettingValueInteger(0, 1, + _settings.disp_color_memgrp) + ) panel.append(rs) rs = RadioSetting("disp_color_mode", "Display color mode set", - RadioSettingValueInteger(0, 1, _settings.disp_color_mode)) + RadioSettingValueInteger(0, 1, + _settings.disp_color_mode)) panel.append(rs) rs = RadioSetting("disp_color_mtr", "Display color meter set", - RadioSettingValueInteger(0, 1, _settings.disp_color_mtr)) + RadioSettingValueInteger(0, 1, + _settings.disp_color_mtr)) panel.append(rs) rs = RadioSetting("disp_color_vfo", "Display color VFO set", - RadioSettingValueInteger(0, 1, _settings.disp_color_vfo)) + RadioSettingValueInteger(0, 1, + _settings.disp_color_vfo)) panel.append(rs) rs = RadioSetting("disp_color_fix", "Display color fix set", - RadioSettingValueInteger(1, 32, _settings.disp_color_fix + 1)) + RadioSettingValueInteger(1, 32, + _settings.disp_color_fix + 1 + )) panel.append(rs) rs = RadioSetting("disp_contrast", "Contrast", - RadioSettingValueInteger(3, 15, _settings.disp_contrast + 2)) + RadioSettingValueInteger(3, 15, + _settings.disp_contrast + 2) + ) panel.append(rs) rs = RadioSetting("disp_intensity", "Intensity", - RadioSettingValueInteger(1, 3, _settings.disp_intensity)) + RadioSettingValueInteger(1, 3, + _settings.disp_intensity)) panel.append(rs) options = ["OFF", "Auto1", "Auto2", "ON"] rs = RadioSetting("disp_mode", "Display backlight mode", - RadioSettingValueList(options, options[_settings.disp_mode])) + RadioSettingValueList(options, + options[_settings.disp_mode])) panel.append(rs) options = ["60Hz", "120Hz", "240Hz"] rs = RadioSetting("dsp_bpf", "Dsp band pass filter", - RadioSettingValueList(options, options[_settings.dsp_bpf])) + RadioSettingValueList(options, + options[_settings.dsp_bpf])) cw.append(rs) options = ["100Hz", "160Hz", "220Hz", "280Hz", "340Hz", "400Hz", - "460Hz", "520Hz", "580Hz", "640Hz", "720Hz", "760Hz", "820Hz", - "880Hz", "940Hz", "1000Hz"] + "460Hz", "520Hz", "580Hz", "640Hz", "720Hz", "760Hz", + "820Hz", "880Hz", "940Hz", "1000Hz"] rs = RadioSetting("dsp_hpf", "Dsp hi pass filter cut off", - RadioSettingValueList(options, options[_settings.dsp_hpf])) + RadioSettingValueList(options, + options[_settings.dsp_hpf])) basic.append(rs) options = ["1000Hz", "1160Hz", "1320Hz", "1480Hz", "1650Hz", "1800Hz", - "1970Hz", "2130Hz", "2290Hz", "2450Hz", "2610Hz", "2770Hz", - "2940Hz", "3100Hz", "3260Hz", "3420Hz", "3580Hz", "3740Hz", - "3900Hz", "4060Hz", "4230Hz", "4390Hz", "4550Hz", "4710Hz", - "4870Hz", "5030Hz", "5190Hz", "5390Hz", "5520Hz", "5680Hz", - "5840Hz", "6000Hz"] + "1970Hz", "2130Hz", "2290Hz", "2450Hz", "2610Hz", "2770Hz", + "2940Hz", "3100Hz", "3260Hz", "3420Hz", "3580Hz", "3740Hz", + "3900Hz", "4060Hz", "4230Hz", "4390Hz", "4550Hz", "4710Hz", + "4870Hz", "5030Hz", "5190Hz", "5390Hz", "5520Hz", "5680Hz", + "5840Hz", "6000Hz"] rs = RadioSetting("dsp_lpf", "Dsp low pass filter cut off", - RadioSettingValueList(options, options[_settings.dsp_lpf])) + RadioSettingValueList(options, + options[_settings.dsp_lpf])) basic.append(rs) options = ["OFF", "LPF", "HPF", "BOTH"] rs = RadioSetting("dsp_mic_eq", "Dsp mic equalization", - RadioSettingValueList(options, options[_settings.dsp_mic_eq])) + RadioSettingValueList(options, + options[_settings.dsp_mic_eq])) basic.append(rs) rs = RadioSetting("dsp_nr", "DSP noise reduction level", - RadioSettingValueInteger(1, 16, _settings.dsp_nr + 1)) + RadioSettingValueInteger(1, 16, + _settings.dsp_nr + 1)) basic.append(rs) # emergency only for US model rs = RadioSetting("fm_mic", "FM mic gain", - RadioSettingValueInteger(0, 100, _settings.fm_mic)) + RadioSettingValueInteger(0, 100, _settings.fm_mic)) basic.append(rs) rs = RadioSetting("home_vfo", "Enable HOME to VFO moving", - RadioSettingValueBoolean(_settings.home_vfo)) + RadioSettingValueBoolean(_settings.home_vfo)) panel.append(rs) options = ["Dial", "Freq", "Panel", "All"] rs = RadioSetting("lock_mode", "Lock mode", - RadioSettingValueList(options, options[_settings.lock_mode])) + RadioSettingValueList(options, + options[_settings.lock_mode])) panel.append(rs) rs = RadioSetting("mem_group", "Mem group", - RadioSettingValueBoolean(_settings.mem_group)) + RadioSettingValueBoolean(_settings.mem_group)) basic.append(rs) options = ["CW SIDETONE", "CW SPEED", "MHz/MEM GRP", "MIC GAIN", - "NB LEVEL", "RF POWER", "STEP"] + "NB LEVEL", "RF POWER", "STEP"] rs = RadioSetting("mem_vfo_dial_mode", "Mem/VFO dial mode", - RadioSettingValueList(options, - options[_settings.mem_vfo_dial_mode])) + RadioSettingValueList(options, + options[ + _settings.mem_vfo_dial_mode + ])) panel.append(rs) rs = RadioSetting("mic_scan", "Mic scan", - RadioSettingValueBoolean(_settings.mic_scan)) + RadioSettingValueBoolean(_settings.mic_scan)) basic.append(rs) options = ["NOR", "RMT", "CAT"] rs = RadioSetting("mic_sel", "Mic selection", - RadioSettingValueList(options, options[_settings.mic_sel])) + RadioSettingValueList(options, + options[_settings.mic_sel])) extended.append(rs) options = ["SIG", "CTR", "VLT", "N/A", "FS", "OFF"] rs = RadioSetting("mtr_arx_sel", "Meter receive selection", - RadioSettingValueList(options, options[_settings.mtr_arx_sel])) + RadioSettingValueList(options, + options[_settings.mtr_arx_sel]) + ) extended.append(rs) options = ["PWR", "ALC", "MOD", "SWR", "VLT", "N/A", "OFF"] rs = RadioSetting("mtr_atx_sel", "Meter transmit selection", - RadioSettingValueList(options, options[_settings.mtr_atx_sel])) + RadioSettingValueList(options, + options[_settings.mtr_atx_sel]) + ) extended.append(rs) rs = RadioSetting("mtr_peak_hold", "Meter peak hold", - RadioSettingValueBoolean(_settings.mtr_peak_hold)) + RadioSettingValueBoolean(_settings.mtr_peak_hold)) extended.append(rs) rs = RadioSetting("nb_level", "Noise blanking level", - RadioSettingValueInteger(0, 100, _settings.nb_level)) + RadioSettingValueInteger(0, 100, _settings.nb_level)) basic.append(rs) - st = RadioSettingValueString(0, 4, ''.join([self._CALLSIGN_CHARSET[x] - for x in self._memobj.op_filter1_name])) + st = RadioSettingValueString(0, 4, + ''.join([self._CALLSIGN_CHARSET[x] + for x in + self._memobj.op_filter1_name])) st.set_charset(self._CALLSIGN_CHARSET) rs = RadioSetting("op_filter1_name", "Optional filter1 name", st) extended.append(rs) - st = RadioSettingValueString(0, 4, ''.join([self._CALLSIGN_CHARSET[x] - for x in self._memobj.op_filter2_name])) + st = RadioSettingValueString(0, 4, + ''.join([self._CALLSIGN_CHARSET[x] + for x in + self._memobj.op_filter2_name])) st.set_charset(self._CALLSIGN_CHARSET) rs = RadioSetting("op_filter2_name", "Optional filter2 name", st) extended.append(rs) rs = RadioSetting("pg_a", "Programmable key MFq:A", - RadioSettingValueList(self.PROGRAMMABLEOPTIONS, - self.PROGRAMMABLEOPTIONS[_settings.pg_a])) + RadioSettingValueList(self.PROGRAMMABLEOPTIONS, + self.PROGRAMMABLEOPTIONS[ + _settings.pg_a])) extended.append(rs) rs = RadioSetting("pg_b", "Programmable key MFq:B", - RadioSettingValueList(self.PROGRAMMABLEOPTIONS, - self.PROGRAMMABLEOPTIONS[_settings.pg_b])) + RadioSettingValueList(self.PROGRAMMABLEOPTIONS, + self.PROGRAMMABLEOPTIONS[ + _settings.pg_b])) extended.append(rs) rs = RadioSetting("pg_c", "Programmable key MFq:C", - RadioSettingValueList(self.PROGRAMMABLEOPTIONS, - self.PROGRAMMABLEOPTIONS[_settings.pg_c])) + RadioSettingValueList(self.PROGRAMMABLEOPTIONS, + self.PROGRAMMABLEOPTIONS[ + _settings.pg_c])) extended.append(rs) rs = RadioSetting("pg_acc", "Programmable mic key ACC", - RadioSettingValueList(self.PROGRAMMABLEOPTIONS, - self.PROGRAMMABLEOPTIONS[_settings.pg_acc])) + RadioSettingValueList(self.PROGRAMMABLEOPTIONS, + self.PROGRAMMABLEOPTIONS[ + _settings.pg_acc])) extended.append(rs) rs = RadioSetting("pg_p1", "Programmable mic key P1", - RadioSettingValueList(self.PROGRAMMABLEOPTIONS, - self.PROGRAMMABLEOPTIONS[_settings.pg_p1])) + RadioSettingValueList(self.PROGRAMMABLEOPTIONS, + self.PROGRAMMABLEOPTIONS[ + _settings.pg_p1])) extended.append(rs) rs = RadioSetting("pg_p2", "Programmable mic key P2", - RadioSettingValueList(self.PROGRAMMABLEOPTIONS, - self.PROGRAMMABLEOPTIONS[_settings.pg_p2])) + RadioSettingValueList(self.PROGRAMMABLEOPTIONS, + self.PROGRAMMABLEOPTIONS[ + _settings.pg_p2])) extended.append(rs) rs = RadioSetting("pkt1200", "Packet 1200 gain level", - RadioSettingValueInteger(0, 100, _settings.pkt1200)) + RadioSettingValueInteger(0, 100, + _settings.pkt1200)) packet.append(rs) rs = RadioSetting("pkt9600", "Packet 9600 gain level", - RadioSettingValueInteger(0, 100, _settings.pkt9600)) + RadioSettingValueInteger(0, 100, _settings.pkt9600)) packet.append(rs) options = ["1200", "9600"] rs = RadioSetting("pkt_rate", "Packet rate", - RadioSettingValueList(options, options[_settings.pkt_rate])) + RadioSettingValueList(options, + options[_settings.pkt_rate])) packet.append(rs) rs = RadioSetting("proc_level", "Proc level", - RadioSettingValueInteger(0, 100, _settings.proc_level)) + RadioSettingValueInteger(0, 100, + _settings.proc_level)) basic.append(rs) rs = RadioSetting("rf_power_hf", "Rf power set HF", - RadioSettingValueInteger(5, 100, _settings.rf_power_hf)) + RadioSettingValueInteger(5, 100, + _settings.rf_power_hf)) basic.append(rs) rs = RadioSetting("rf_power_6m", "Rf power set 6m", - RadioSettingValueInteger(5, 100, _settings.rf_power_6m)) + RadioSettingValueInteger(5, 100, + _settings.rf_power_6m)) basic.append(rs) rs = RadioSetting("rf_power_vhf", "Rf power set VHF", - RadioSettingValueInteger(5, 50, _settings.rf_power_vhf)) + RadioSettingValueInteger(5, 50, + _settings.rf_power_vhf)) basic.append(rs) rs = RadioSetting("rf_power_uhf", "Rf power set UHF", - RadioSettingValueInteger(2, 20, _settings.rf_power_uhf)) + RadioSettingValueInteger(2, 20, + _settings.rf_power_uhf)) basic.append(rs) options = ["TIME", "BUSY", "STOP"] rs = RadioSetting("scan_mode", "Scan mode", - RadioSettingValueList(options, options[_settings.scan_mode])) + RadioSettingValueList(options, + options[_settings.scan_mode])) basic.append(rs) rs = RadioSetting("scan_resume", "Scan resume", - RadioSettingValueInteger(1, 10, _settings.scan_resume)) + RadioSettingValueInteger(1, 10, + _settings.scan_resume)) basic.append(rs) rs = RadioSetting("split_tone", "Split tone enable", - RadioSettingValueBoolean(_settings.split_tone)) + RadioSettingValueBoolean(_settings.split_tone)) extended.append(rs) options = ["RF-Gain", "Squelch"] rs = RadioSetting("sql_rf_gain", "Squelch/RF-Gain", - RadioSettingValueList(options, options[_settings.sql_rf_gain])) + RadioSettingValueList(options, + options[_settings.sql_rf_gain]) + ) panel.append(rs) rs = RadioSetting("ssb_mic", "SSB Mic gain", - RadioSettingValueInteger(0, 100, _settings.ssb_mic)) + RadioSettingValueInteger(0, 100, _settings.ssb_mic)) basic.append(rs) options = ["Off"] + ["%i" % i for i in range(1, 21)] rs = RadioSetting("tot_time", "Time-out timer", - RadioSettingValueList(options, options[_settings.tot_time])) + RadioSettingValueList(options, + options[_settings.tot_time])) basic.append(rs) options = ["OFF", "ATAS(HF)", "ATAS(HF&50)", "ATAS(ALL)", "TUNER"] rs = RadioSetting("tuner_atas", "Tuner/ATAS device", - RadioSettingValueList(options, options[_settings.tuner_atas])) + RadioSettingValueList(options, + options[_settings.tuner_atas])) extended.append(rs) rs = RadioSetting("tx_if_filter", "Transmit IF filter", - RadioSettingValueList(self.FILTERS, - self.FILTERS[_settings.tx_if_filter])) + RadioSettingValueList(self.FILTERS, + self.FILTERS[ + _settings.tx_if_filter])) basic.append(rs) rs = RadioSetting("vox_delay", "VOX delay (*100 ms)", - RadioSettingValueInteger(1, 30, _settings.vox_delay)) + RadioSettingValueInteger(1, 30, _settings.vox_delay)) basic.append(rs) rs = RadioSetting("vox_gain", "VOX Gain", - RadioSettingValueInteger(1, 100, _settings.vox_gain)) + RadioSettingValueInteger(1, 100, _settings.vox_gain)) basic.append(rs) rs = RadioSetting("xvtr_a", "Xvtr A displacement", - RadioSettingValueInteger(-4294967295, 4294967295, - self._memobj.xvtr_a_offset * - (-1 if _settings.xvtr_a_negative else 1))) + RadioSettingValueInteger( + -4294967295, 4294967295, + self._memobj.xvtr_a_offset * + (-1 if _settings.xvtr_a_negative else 1))) + extended.append(rs) rs = RadioSetting("xvtr_b", "Xvtr B displacement", - RadioSettingValueInteger(-4294967295, 4294967295, - self._memobj.xvtr_b_offset * - (-1 if _settings.xvtr_b_negative else 1))) + RadioSettingValueInteger( + -4294967295, 4294967295, + self._memobj.xvtr_b_offset * + (-1 if _settings.xvtr_b_negative else 1))) extended.append(rs) options = ["OFF", "XVTR A", "XVTR B"] rs = RadioSetting("xvtr_sel", "Transverter function selection", - RadioSettingValueList(options, options[_settings.xvtr_sel])) + RadioSettingValueList(options, + options[_settings.xvtr_sel])) extended.append(rs)
rs = RadioSetting("disp", "Display large", - RadioSettingValueBoolean(_settings.disp)) + RadioSettingValueBoolean(_settings.disp)) panel.append(rs) rs = RadioSetting("nb", "Noise blanker", - RadioSettingValueBoolean(_settings.nb)) + RadioSettingValueBoolean(_settings.nb)) panelcontr.append(rs) options = ["Auto", "Fast", "Slow", "Off"] rs = RadioSetting("agc", "AGC", - RadioSettingValueList(options, options[_settings.agc])) + RadioSettingValueList(options, + options[_settings.agc])) panelcontr.append(rs) options = ["PWR", "ALC", "SWR", "MOD"] rs = RadioSetting("pwr_meter_mode", "Power meter mode", - RadioSettingValueList(options, - options[_settings.pwr_meter_mode])) + RadioSettingValueList(options, + options[ + _settings.pwr_meter_mode])) panelcontr.append(rs) rs = RadioSetting("vox", "Vox", - RadioSettingValueBoolean(_settings.vox)) + RadioSettingValueBoolean(_settings.vox)) panelcontr.append(rs) rs = RadioSetting("bk", "Semi break-in", - RadioSettingValueBoolean(_settings.bk)) + RadioSettingValueBoolean(_settings.bk)) cw.append(rs) rs = RadioSetting("kyr", "Keyer", - RadioSettingValueBoolean(_settings.kyr)) + RadioSettingValueBoolean(_settings.kyr)) cw.append(rs) options = ["enabled", "disabled"] rs = RadioSetting("fst", "Fast", - RadioSettingValueList(options, options[_settings.fst])) + RadioSettingValueList(options, options[_settings.fst] + )) panelcontr.append(rs) options = ["enabled", "disabled"] rs = RadioSetting("lock", "Lock", - RadioSettingValueList(options, options[_settings.lock])) + RadioSettingValueList(options, + options[_settings.lock])) panelcontr.append(rs) rs = RadioSetting("scope_peakhold", "Scope max hold", - RadioSettingValueBoolean(_settings.scope_peakhold)) + RadioSettingValueBoolean(_settings.scope_peakhold)) panelcontr.append(rs) options = ["21", "31", "127"] rs = RadioSetting("scope_width", "Scope width (channels)", - RadioSettingValueList(options, options[_settings.scope_width])) + RadioSettingValueList(options, + options[_settings.scope_width]) + ) panelcontr.append(rs) rs = RadioSetting("proc", "Speech processor", - RadioSettingValueBoolean(_settings.proc)) + RadioSettingValueBoolean(_settings.proc)) panelcontr.append(rs)
return top @@ -965,13 +1065,14 @@ LOG.debug("Setting %s <= %s" % (setting, element.value)) if setting == "arts_idw": self._memobj.arts_idw = \ - [self._CALLSIGN_CHARSET_REV[x] for x in - str(element.value)] + [self._CALLSIGN_CHARSET_REV[x] + for x in str(element.value)] elif setting in ["beacon_text1", "beacon_text2", - "beacon_text3", "op_filter1_name", "op_filter2_name"]: + "beacon_text3", "op_filter1_name", + "op_filter2_name"]: setattr(self._memobj, setting, - [self._BEACON_CHARSET_REV[x] for x in - str(element.value)]) + [self._BEACON_CHARSET_REV[x] + for x in str(element.value)]) elif setting == "cw_delay": val = int(element.value) + 2 setattr(obj, "cw_delay_hi", val / 256) @@ -994,6 +1095,7 @@ print element.get_name() raise
+ @directory.register class FT857USRadio(FT857Radio): """Yaesu FT857/897 (US version)""" @@ -1007,7 +1109,7 @@ # block 9 (140 Bytes long) is to be repeted 40 times # should be 42 times but this way I can use original 817 functions _block_lengths = [2, 82, 252, 196, 252, 196, 212, 55, 140, 140, 140, 38, - 176, 140] + 176, 140]
SPECIAL_60M = { "M-601": -52, @@ -1031,7 +1133,7 @@ mem.extd_number = number
_mem = self._memobj.sixtymeterchannels[-self.LAST_SPECIAL60M_INDEX + - mem.number] + mem.number]
mem = self._get_memory(mem, _mem)
@@ -1059,7 +1161,7 @@ raise errors.RadioError("Mode {mode} is not valid " "in 60m channels".format(mode=mem.mode)) _mem = self._memobj.sixtymeterchannels[-self.LAST_SPECIAL60M_INDEX + - mem.number] + mem.number] self._set_memory(mem, _mem)
def get_memory(self, number): @@ -1083,7 +1185,7 @@ top = FT857Radio.get_settings(self) basic = top[0] rs = RadioSetting("emergency", "Emergency", - RadioSettingValueBoolean(self._memobj.settings.emergency)) + RadioSettingValueBoolean( + self._memobj.settings.emergency)) basic.append(rs) return top - diff --git a/tools/cpep8.blacklist b/tools/cpep8.blacklist --- a/tools/cpep8.blacklist +++ b/tools/cpep8.blacklist @@ -22,7 +22,6 @@ ./chirp/ft50_ll.py ./chirp/ft60.py ./chirp/ft7800.py -./chirp/ft857.py ./chirp/ft90.py ./chirp/ftm350.py ./chirp/h777.py
# HG changeset patch # User Marco Filippi iz3gme.marco@gmail.com # Date 1425302030 -3600 # Mon Mar 02 14:13:50 2015 +0100 # Node ID 59cbac57ae72aed87857de15c3eea0acdaf248df # Parent 0d112e3cf2f951aa31d0b570f772be9aad73c4a0 Fix style issues in ft1d.py
This patch brings ft1d.py into conformance with PEP8 rules and removes it from the blacklist.
improves #2355
diff --git a/chirp/ft1d.py b/chirp/ft1d.py --- a/chirp/ft1d.py +++ b/chirp/ft1d.py @@ -14,7 +14,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/.
-import os import re import string import logging @@ -432,14 +431,14 @@ if vfo.checksum != vfo_bak.checksum: print "Warning: VFO settings are inconsistent with backup" else: - if ((chosen_bank[vfo_index] is None) and - (vfo.bank_index != 0xFFFF)): + if ((chosen_bank[vfo_index] is None) and (vfo.bank_index != + 0xFFFF)): print "Disabling banks for VFO %d" % vfo_index vfo.bank_index = 0xFFFF vfo.mr_index = 0xFFFF vfo.bank_enable = 0xFFFF elif ((chosen_bank[vfo_index] is not None) and - (vfo.bank_index == 0xFFFF)): + (vfo.bank_index == 0xFFFF)): print "Enabling banks for VFO %d" % vfo_index vfo.bank_index = chosen_bank[vfo_index] vfo.mr_index = chosen_mr[vfo_index] @@ -527,7 +526,7 @@ _has_af_dual = True
_SG_RE = re.compile(r"(?P<sign>[-+NESW]?)(?P<d>[\d]+)[\s.,]*" - "(?P<m>[\d]*)[\s']*(?P<s>[\d]*)") + "(?P<m>[\d]*)[\s']*(?P<s>[\d]*)")
_RX_BAUD = ("off", "1200 baud", "9600 baud") _TX_DELAY = ("100ms", "150ms", "200ms", "250ms", "300ms", @@ -580,7 +579,8 @@ ["Busy", "Hold"] _SCAN_RESTART = ["%.1fs" % (0.1 * x) for x in range(1, 10)] + \ ["%.1fs" % (0.5 * x) for x in range(2, 21)] - _LAMP_KEY = ["Key %d sec" % x for x in range(2, 11)] + ["Continuous", "OFF"] + _LAMP_KEY = ["Key %d sec" % x + for x in range(2, 11)] + ["Continuous", "OFF"] _LCD_CONTRAST = ["Level %d" % x for x in range(1, 16)] _LCD_DIMMER = ["Level %d" % x for x in range(1, 7)] _TOT_TIME = ["Off"] + ["%.1f min" % (0.5 * x) for x in range(1, 21)] @@ -600,7 +600,7 @@ 3. Press and hold in the [F] key while turning the radio on ("CLONE" will appear on the display). 4. <b>After clicking OK</b>, press the [BAND] key to send image.""" - )) + )) rp.pre_upload = _(dedent("""\ 1. Turn radio off. 2. Connect cable to DATA terminal. @@ -816,8 +816,8 @@ menu = RadioSettingGroup("aprs_general", "APRS General") aprs = self._memobj.aprs
- val = RadioSettingValueString(0, 6, - str(aprs.my_callsign.callsign).rstrip("\xFF")) + val = RadioSettingValueString( + 0, 6, str(aprs.my_callsign.callsign).rstrip("\xFF")) rs = RadioSetting("aprs.my_callsign.callsign", "My Callsign", val) rs.set_apply_callback(self.apply_callsign, aprs.my_callsign) menu.append(rs) @@ -866,8 +866,8 @@ # TODO: Rebuild this when latitude/longitude change. # TODO: Add saved positions p1 - p10 to memory map. position_str = list(self._POSITIONS) - #position_str[1] = "%s %s" % (latitude, longitude) - #position_str[2] = "%s %s" % (latitude, longitude) + # position_str[1] = "%s %s" % (latitude, longitude) + # position_str[2] = "%s %s" % (latitude, longitude) val = RadioSettingValueList(position_str, position_str[aprs.selected_position]) rs = RadioSetting("aprs.selected_position", "My Position", val) @@ -883,8 +883,8 @@ rs.set_apply_callback(self.apply_lat_long, aprs) menu.append(rs)
- val = RadioSettingValueList(self._TIME_SOURCE, - self._TIME_SOURCE[aprs.set_time_manually]) + val = RadioSettingValueList( + self._TIME_SOURCE, self._TIME_SOURCE[aprs.set_time_manually]) rs = RadioSetting("aprs.set_time_manually", "Time Source", val) menu.append(rs)
@@ -902,32 +902,32 @@ rs = RadioSetting("aprs.gps_units_speed", "GPS Speed Units", val) menu.append(rs)
- val = RadioSettingValueList(self._ALT_UNITS, - self._ALT_UNITS[aprs.aprs_units_altitude_ft]) + val = RadioSettingValueList( + self._ALT_UNITS, self._ALT_UNITS[aprs.aprs_units_altitude_ft]) rs = RadioSetting("aprs.aprs_units_altitude_ft", "APRS Altitude Units", val) menu.append(rs)
- val = RadioSettingValueList(self._ALT_UNITS, - self._ALT_UNITS[aprs.gps_units_altitude_ft]) + val = RadioSettingValueList( + self._ALT_UNITS, self._ALT_UNITS[aprs.gps_units_altitude_ft]) rs = RadioSetting("aprs.gps_units_altitude_ft", "GPS Altitude Units", val) menu.append(rs)
- val = RadioSettingValueList(self._POS_UNITS, - self._POS_UNITS[aprs.aprs_units_position_mmss]) + val = RadioSettingValueList( + self._POS_UNITS, self._POS_UNITS[aprs.aprs_units_position_mmss]) rs = RadioSetting("aprs.aprs_units_position_mmss", "APRS Position Format", val) menu.append(rs)
- val = RadioSettingValueList(self._POS_UNITS, - self._POS_UNITS[aprs.gps_units_position_sss]) + val = RadioSettingValueList( + self._POS_UNITS, self._POS_UNITS[aprs.gps_units_position_sss]) rs = RadioSetting("aprs.gps_units_position_sss", "GPS Position Format", val) menu.append(rs)
- val = RadioSettingValueList(self._DIST_UNITS, - self._DIST_UNITS[aprs.aprs_units_distance_m]) + val = RadioSettingValueList( + self._DIST_UNITS, self._DIST_UNITS[aprs.aprs_units_distance_m]) rs = RadioSetting("aprs.aprs_units_distance_m", "APRS Distance Units", val) menu.append(rs) @@ -938,13 +938,13 @@ val) menu.append(rs)
- val = RadioSettingValueList(self._RAIN_UNITS, - self._RAIN_UNITS[aprs.aprs_units_rain_inch]) + val = RadioSettingValueList( + self._RAIN_UNITS, self._RAIN_UNITS[aprs.aprs_units_rain_inch]) rs = RadioSetting("aprs.aprs_units_rain_inch", "APRS Rain Units", val) menu.append(rs)
- val = RadioSettingValueList(self._TEMP_UNITS, - self._TEMP_UNITS[aprs.aprs_units_temperature_f]) + val = RadioSettingValueList( + self._TEMP_UNITS, self._TEMP_UNITS[aprs.aprs_units_temperature_f]) rs = RadioSetting("aprs.aprs_units_temperature_f", "APRS Temperature Units", val) menu.append(rs) @@ -957,17 +957,18 @@
for index in range(0, 60): if aprs_msg[index].flag != 255: - val = RadioSettingValueString(0, 9, - str(aprs_msg[index].dst_callsign).rstrip("\xFF") + + val = RadioSettingValueString( + 0, 9, str(aprs_msg[index].dst_callsign).rstrip("\xFF") + "-%d" % aprs_msg[index].dst_callsign_ssid) - rs = RadioSetting("aprs_msg.dst_callsign%d" % index, - "Dst Callsign %d" % index, val) + rs = RadioSetting( + "aprs_msg.dst_callsign%d" % index, + "Dst Callsign %d" % index, val) menu.append(rs)
- val = RadioSettingValueString(0, 66, - str(aprs_msg[index].path_and_body).rstrip("\xFF")) - rs = RadioSetting("aprs_msg.path_and_body%d" % - index, "Body", val) + val = RadioSettingValueString( + 0, 66, str(aprs_msg[index].path_and_body).rstrip("\xFF")) + rs = RadioSetting( + "aprs_msg.path_and_body%d" % index, "Body", val) menu.append(rs)
return menu @@ -981,45 +982,54 @@ # There is probably a more pythonesque way to do this if int(aprs_meta[index].sender_callsign[0]) != 255: callsign = str(aprs_meta[index].sender_callsign).rstrip("\xFF") - #print "Callsign %s %s" % ( callsign, list(callsign) ) + # print "Callsign %s %s" % ( callsign, list(callsign) ) val = RadioSettingValueString(0, 9, callsign) - rs = RadioSetting("aprs_beacon.src_callsign%d" % index, - "SRC Callsign %d" % index, val) + rs = RadioSetting( + "aprs_beacon.src_callsign%d" % index, + "SRC Callsign %d" % index, val) menu.append(rs)
if int(aprs_beacon[index].dst_callsign[0]) != 255: - val = RadioSettingValueString(0, 9, + val = RadioSettingValueString( + 0, 9, str(aprs_beacon[index].dst_callsign).rstrip("\xFF")) - rs = RadioSetting("aprs_beacon.dst_callsign%d" % index, + rs = RadioSetting( + "aprs_beacon.dst_callsign%d" % index, "DST Callsign %d" % index, val) menu.append(rs)
if int(aprs_meta[index].sender_callsign[0]) != 255: - date = "%02d/%02d/%02d" % (aprs_meta[index].date[0], - aprs_meta[index].date[1], aprs_meta[index].date[2]) + date = "%02d/%02d/%02d" % ( + aprs_meta[index].date[0], + aprs_meta[index].date[1], + aprs_meta[index].date[2]) val = RadioSettingValueString(0, 8, date) rs = RadioSetting("aprs_beacon.date%d" % index, "Date", val) menu.append(rs)
- time = "%02d:%02d" % (aprs_meta[index].time[0], - aprs_meta[index].time[1]) + time = "%02d:%02d" % ( + aprs_meta[index].time[0], + aprs_meta[index].time[1]) val = RadioSettingValueString(0, 5, time) rs = RadioSetting("aprs_beacon.time%d" % index, "Time", val) menu.append(rs)
if int(aprs_beacon[index].dst_callsign[0]) != 255: path = str(aprs_beacon[index].path).replace("\x00", " ") - path = ''.join(c for c in path if c in string.printable).strip() + path = ''.join(c for c in path + if c in string.printable).strip() path = str(path).replace("\xE0", "*") - #print "path %s %s" % ( path, list(path) ) + # print "path %s %s" % ( path, list(path) ) val = RadioSettingValueString(0, 32, path) - rs = RadioSetting("aprs_beacon.path%d" % index, "Digipath", val) + rs = RadioSetting( + "aprs_beacon.path%d" % index, "Digipath", val) menu.append(rs)
body = str(aprs_beacon[index].body).rstrip("\xFF") checksum = body[-2:] - body = ''.join(s for s in body[:-2] if s in string.printable - ).translate(None, "\x09\x0a\x0b\x0c\x0d") + body = ''.join(s for s in body[:-2] + if s in string.printable).translate( + None, "\x09\x0a\x0b\x0c\x0d") try: val = RadioSettingValueString(0, 134, body.strip()) except Exception as e: @@ -1221,11 +1231,11 @@
# Show friendly messages for empty slots rather than blanks. # TODO: Rebuild this when digi_path_[34567] change. - #path_str[3] = path_str[3] or self._DIGI_PATHS[3] - #path_str[4] = path_str[4] or self._DIGI_PATHS[4] - #path_str[5] = path_str[5] or self._DIGI_PATHS[5] - #path_str[6] = path_str[6] or self._DIGI_PATHS[6] - #path_str[7] = path_str[7] or self._DIGI_PATHS[7] + # path_str[3] = path_str[3] or self._DIGI_PATHS[3] + # path_str[4] = path_str[4] or self._DIGI_PATHS[4] + # path_str[5] = path_str[5] or self._DIGI_PATHS[5] + # path_str[6] = path_str[6] or self._DIGI_PATHS[6] + # path_str[7] = path_str[7] or self._DIGI_PATHS[7] path_str[3] = self._DIGI_PATHS[3] path_str[4] = self._DIGI_PATHS[4] path_str[5] = self._DIGI_PATHS[5] @@ -1306,15 +1316,15 @@ val = RadioSettingValueList( self._DTMF_SPEED, self._DTMF_SPEED[dtmf.dtmf_speed]) - rs = RadioSetting("scan_settings.dtmf_speed", - "DTMF AutoDial Speed", val) + rs = RadioSetting( + "scan_settings.dtmf_speed", "DTMF AutoDial Speed", val) menu.append(rs)
val = RadioSettingValueList( self._DTMF_DELAY, self._DTMF_DELAY[dtmf.dtmf_delay]) - rs = RadioSetting("scan_settings.dtmf_delay", - "DTMF AutoDial Delay", val) + rs = RadioSetting( + "scan_settings.dtmf_delay", "DTMF AutoDial Delay", val) menu.append(rs)
for i in range(10): diff --git a/tools/cpep8.blacklist b/tools/cpep8.blacklist --- a/tools/cpep8.blacklist +++ b/tools/cpep8.blacklist @@ -16,7 +16,6 @@ ./chirp/chirp_common.py ./chirp/elib_intl.py ./chirp/ft1802.py -./chirp/ft1d.py ./chirp/ft2800.py ./chirp/ft50.py ./chirp/ft50_ll.py
participants (1)
-
Marco Filippi IZ3GME