[chirp_devel] [PATCH] [ft4] correct frequency scale factor for FT-65 [#6577]

DanClemmensen
Thu Mar 7 13:55:15 PST 2019


# HG changeset patch
# User DanClemmensen <DanClemmensen at gmail.com>
# Date 1551995676 28800
#      Thu Mar 07 13:54:36 2019 -0800
# Node ID 49a9e758f28951c3d631a860e10b6dd71f753ad2
# Parent  0942fe2563a1457e5ccaa99e9032c5e072ab7151
[ft4] correct frequency scale factor for FT-65 [#6577]

diff -r 0942fe2563a1 -r 49a9e758f289 chirp/drivers/ft4.py
--- a/chirp/drivers/ft4.py	Thu Mar 07 11:31:08 2019 -0800
+++ b/chirp/drivers/ft4.py	Thu Mar 07 13:54:36 2019 -0800
@@ -989,7 +989,7 @@
         _mem, ndx, num, regtype, sname = self.slotloc(memref)
         mem.number = num
         mem.freq = int(_mem.freq) * 10
-        mem.offset = int(_mem.offset) * 25000
+        mem.offset = int(_mem.offset) * self.freq_offset_scale
         mem.duplex = DUPLEX[_mem.duplex]
 
         self.decode_sql(mem, _mem)
@@ -1031,7 +1031,7 @@
         _mem.tx_width = mem.mode == "NFM"
         _mem.step = STEP_CODE.index(mem.tuning_step)
 
-        _mem.offset = mem.offset / 25000
+        _mem.offset = mem.offset / self.freq_offset_scale
         duplex = mem.duplex
         if regtype in ["memory", "pms"]:
             ndx = num - 1
@@ -1067,6 +1067,7 @@
     Pkeys = 2     # number of programmable keys on the FT-4
     namelen = 6   # length of the mem name display on the FT-4 front-panel
     id_str = b'IFT-35R\x00\x00V100\x00\x00'
+    freq_offset_scale = 25000
     legal_steps = US_LEGAL_STEPS
     class_group_descs = YaesuSC35GenericRadio.group_descriptions
     # names for the setmode function for the programmable keys. Mode zero means
@@ -1104,6 +1105,7 @@
     Pkeys = 4     # number of programmable keys on the FT-65
     namelen = 8   # length of the mem name display on the FT-65 front panel
     id_str = b'IH-420\x00\x00\x00V100\x00\x00'
+    freq_offset_scale = 50000
     legal_steps = US_LEGAL_STEPS
     class_group_descs = copy.deepcopy(YaesuSC35GenericRadio.group_descriptions)
     add_paramdesc(



More information about the chirp_devel mailing list