summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-02-08 16:37:24 +0100
committerChristoph Berg <myon@debian.org>2020-02-08 16:37:24 +0100
commit3a39abcaf7cd223f2e447d77962878be38949017 (patch)
tree298e157ecc63d511f759d586db81ef3b2d3d5b30
parentf26b2ff1e4daa6862e1f87b236549a315dfa934c (diff)
New upstream version 20200207upstream/20200207
-rw-r--r--PKG-INFO2
-rw-r--r--chirp/__init__.py2
-rw-r--r--chirp/drivers/ft4.py122
3 files changed, 91 insertions, 35 deletions
diff --git a/PKG-INFO b/PKG-INFO
index 33dc5d1..b7bb291 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: chirp
-Version: daily-20200206
+Version: daily-20200207
Summary: UNKNOWN
Home-page: UNKNOWN
Author: UNKNOWN
diff --git a/chirp/__init__.py b/chirp/__init__.py
index 3e33628..264b712 100644
--- a/chirp/__init__.py
+++ b/chirp/__init__.py
@@ -17,7 +17,7 @@ import os
import sys
from glob import glob
-CHIRP_VERSION="daily-20200206"
+CHIRP_VERSION="daily-20200207"
module_dir = os.path.dirname(sys.modules["chirp"].__file__)
__all__ = []
diff --git a/chirp/drivers/ft4.py b/chirp/drivers/ft4.py
index 4f4f689..0018097 100644
--- a/chirp/drivers/ft4.py
+++ b/chirp/drivers/ft4.py
@@ -476,9 +476,10 @@ DUPLEX = ["+", "", "-", "", "off", "", "split"] # (0,2,4,5)= (+,-,0, auto)
SKIPS = ["", "S"]
-POWER_LEVELS = [chirp_common.PowerLevel("Low", watts=0.5),
- chirp_common.PowerLevel("Mid", watts=2.5),
- chirp_common.PowerLevel("High", watts=5.0)]
+POWER_LEVELS = [
+ chirp_common.PowerLevel("High", watts=5.0), # high must be first (0)
+ chirp_common.PowerLevel("Mid", watts=2.5),
+ chirp_common.PowerLevel("Low", watts=0.5)]
# these steps encode to 0-9 on all radios, but encoding #2 is disallowed
# on the US versions (FT-4XR)
@@ -570,38 +571,16 @@ SPECIALS_FT65 = SPECIALS_FT4
FT65_PROGS = ("prog", ["P1", "P2", "P3", "P4"])
SPECIALS_FT65[-1] = FT65_PROGS # replace the last entry (P key names)
-# I wonder whether we should simply open the bands to what the radios allow
-# for RX? The radios do take care of allowing or prohibiting TX on their own.
-# In that case, the ASIA settings can be used for any region model.
-# To be discussed with Dan Clemmensen. [AE6YN]
-VALID_BANDS_US_DUAL = [
+VALID_BANDS_DUAL = [
(65000000, 108000000), # broadcast FM, receive only
- (144000000, 148000000), # VHF, US version, TX and RX
- (430000000, 450000000) # UHF, US version, TX and RX
- ]
-VALID_BANDS_EU_DUAL = [
- (65000000, 108000000), # broadcast FM, receive only
- (144000000, 146000000), # VHF, EU version, TX and RX
- (430000000, 440000000) # UHF, EU version, TX and RX
- ]
-VALID_BANDS_ASIA_DUAL = [
- (65000000, 108000000), # broadcast FM, receive only
- (136000000, 174000000), # VHF, Asia version, TX and RX
- (400000000, 480000000) # UHF, Asia version, TX and RX
+ (136000000, 174000000), # VHF
+ (400000000, 480000000) # UHF
]
-VALID_BANDS_US_VHF = [
- (65000000, 108000000), # broadcast FM, receive only
- (144000000, 148000000), # VHF, US version, TX and RX
- ]
-VALID_BANDS_EU_VHF = [
- (65000000, 108000000), # broadcast FM, receive only
- (144000000, 146000000), # VHF, EU version, TX and RX
- ]
-VALID_BANDS_ASIA_VHF = [
+VALID_BANDS_VHF = [
(65000000, 108000000), # broadcast FM, receive only
- (136000000, 174000000), # VHF, Asia version, TX and RX
+ (136000000, 174000000), # VHF
]
# bands for the five VFO and three home channel memories
@@ -1063,6 +1042,8 @@ class YaesuSC35GenericRadio(chirp_common.CloneModeRadio,
y = obj[x]
if y == 0:
break
+ if y == 0x7F: # when programmed from VFO
+ y = 0x20
name += chr(y)
return name.rstrip()
@@ -1140,7 +1121,9 @@ class YaesuSC35GenericRadio(chirp_common.CloneModeRadio,
_mem.freq = txfreq
self.encode_sql(mem, _mem)
if mem.power:
- _mem.tx_pwr = POWER_LEVELS.index(mem.power)
+ _mem.tx_pwr = 2 - POWER_LEVELS.index(mem.power)
+ else:
+ _mem.tx_pwr = 0 # set to "High" if CHIRP canonical value is None
_mem.tx_width = mem.mode == "NFM"
_mem.step = STEP_CODE.index(mem.tuning_step)
@@ -1226,18 +1209,91 @@ class YaesuFT4XRRadio(YaesuFT4GenericRadio):
"""
MODEL = "FT-4XR"
id_str = b'IFT-35R\x00\x00V100\x00\x00'
- valid_bands = VALID_BANDS_US_DUAL
+ valid_bands = VALID_BANDS_DUAL
legal_steps = US_LEGAL_STEPS
BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_DUALBAND
@directory.register
+class YaesuFT4XERadio(YaesuFT4GenericRadio):
+ """
+ FT-4X dual band, EU version
+ """
+ MODEL = "FT-4XE"
+ id_str = b'IFT-35R\x00\x00V100\x00\x00'
+ valid_bands = VALID_BANDS_DUAL
+ legal_steps = STEP_CODE
+ BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_DUALBAND
+
+
+@directory.register
+class YaesuFT4VRRadio(YaesuFT4GenericRadio):
+ """
+ FT-4V VHF, US version
+ """
+ MODEL = "FT-4VR"
+ id_str = b'IFT-15R\x00\x00V100\x00\x00'
+ valid_bands = VALID_BANDS_VHF
+ legal_steps = US_LEGAL_STEPS
+ BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_MONO_VHF
+
+
+# No image available yet
+# @directory.register
+# class YaesuFT4VERadio(YaesuFT4GenericRadio):
+# """
+# FT-4V VHF, EU version
+# """
+# MODEL = "FT-4VE"
+# id_str = b'IFT-15R\x00\x00V100\x00\x00'
+# valid_bands = VALID_BANDS_VHF
+# legal_steps = STEP_CODE
+# BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_MONO_VHF
+
+
+@directory.register
class YaesuFT65RRadio(YaesuFT65GenericRadio):
"""
FT-65 dual band, US version
"""
MODEL = "FT-65R"
id_str = b'IH-420\x00\x00\x00V100\x00\x00'
- valid_bands = VALID_BANDS_US_DUAL
+ valid_bands = VALID_BANDS_DUAL
legal_steps = US_LEGAL_STEPS
BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_DUALBAND
+
+
+@directory.register
+class YaesuFT65ERadio(YaesuFT65GenericRadio):
+ """
+ FT-65 dual band, EU version
+ """
+ MODEL = "FT-65E"
+ id_str = b'IH-420\x00\x00\x00V100\x00\x00'
+ valid_bands = VALID_BANDS_DUAL
+ legal_steps = STEP_CODE
+ BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_DUALBAND
+
+
+@directory.register
+class YaesuFT25RRadio(YaesuFT65GenericRadio):
+ """
+ FT-25 VHF, US version
+ """
+ MODEL = "FT-25R"
+ id_str = b'IFT-25R\x00\x00V100\x00\x00'
+ valid_bands = VALID_BANDS_VHF
+ legal_steps = US_LEGAL_STEPS
+ BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_MONO_VHF
+
+
+# No image available yet
+# @directory.register
+# class YaesuFT25ERadio(YaesuFT65GenericRadio):
+# """
+# FT-25 VHF, EU version
+# """
+# MODEL = "FT-25E"
+# id_str = b'IFT-25R\x00\x00V100\x00\x00'
+# valid_bands = # legal_steps = US_LEGAL_STEPS
+# BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_MONO_VHF