[chirp_devel] [PATCH] [FT7800] Fix TSQL-R tone mode support
Marco Filippi IZ3GME
Sun Jul 20 08:04:46 PDT 2014
# HG changeset patch
# User Marco Filippi <iz3gme.marco at gmail.com>
# Date 1405868660 -7200
# Sun Jul 20 17:04:20 2014 +0200
# Node ID 092196a9b1ae4b7e7d67df7ce11a744f22a8c907
# Parent fa902fc78810dae3a383a025c710eb575145fa1c
[FT7800] Fix TSQL-R tone mode support
Fix #221
diff -r fa902fc78810 -r 092196a9b1ae chirp/ft7800.py
--- a/chirp/ft7800.py Mon Jul 07 19:42:15 2014 -0400
+++ b/chirp/ft7800.py Sun Jul 20 17:04:20 2014 +0200
@@ -97,8 +97,8 @@
bbcd freq[3];
u8 clockshift:1,
tune_step:3,
- unknown5:2, // TODO: tmode has extended settings, at least 4 bits
- tmode:2;
+ unknown5:1, // TODO: tmode has extended settings, at least 4 bits
+ tmode:3;
bbcd split[3];
u8 power:2,
tone:6;
@@ -148,7 +148,6 @@
"""
MODES = ["FM", "AM", "NFM"]
-TMODES = ["", "Tone", "TSQL", "DTCS"]
DUPLEX = ["", "", "-", "+", "split"]
STEPS = [5.0, 10.0, 12.5, 15.0, 20.0, 25.0, 50.0, 100.0]
SKIPS = ["", "S", "P", ""]
@@ -295,7 +294,7 @@
rf.has_ctone = False
rf.has_dtcs_polarity = False
rf.valid_modes = MODES
- rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS"]
+ rf.valid_tmodes = self.TMODES
rf.valid_duplexes = ["", "-", "+", "split"]
rf.valid_tuning_steps = STEPS
rf.valid_bands = [(108000000, 520000000), (700000000, 990000000)]
@@ -393,7 +392,7 @@
mem.freq = get_freq(int(_mem.freq) * 10000)
mem.rtone = chirp_common.TONES[_mem.tone]
- mem.tmode = TMODES[_mem.tmode]
+ mem.tmode = self.TMODES[_mem.tmode]
mem.mode = self.MODES[_mem.mode]
mem.dtcs = chirp_common.DTCS_CODES[_mem.dtcs]
if self.get_features().has_tuning_step:
@@ -420,7 +419,7 @@
set_freq(mem.freq, _mem, "freq")
_mem.tone = chirp_common.TONES.index(mem.rtone)
- _mem.tmode = TMODES.index(mem.tmode)
+ _mem.tmode = self.TMODES.index(mem.tmode)
_mem.mode = self.MODES.index(mem.mode)
_mem.dtcs = chirp_common.DTCS_CODES.index(mem.dtcs)
if self.get_features().has_tuning_step:
@@ -521,6 +520,9 @@
_model = "AH016"
_memsize = 31561
_block_lengths = [8, 31552, 1]
+ TMODES = ["", "Tone", "TSQL", "TSQL-R", "DTCS"]
+
+
def get_bank_model(self):
return FT7800BankModel(self)
@@ -796,6 +798,8 @@
_memstart = 0x0000
+ TMODES = ["", "Tone", "TSQL", "DTCS"]
+
@classmethod
def get_prompts(cls):
rp = chirp_common.RadioPrompts()
More information about the chirp_devel
mailing list