Commit Graph

3246 Commits

Author SHA1 Message Date
Dan Smith
79654d4367 Add test image supplied by Dan for FT-65
#4787
2019-03-13 13:04:50 -07:00
DanClemmensen
a2a7e864b1 [ft4] enable FT-65 support [#4787]
This patch requires the .img file (supplied earlier)
Tested by me on a friend's FT-65, and some
testing by others.
2019-03-13 13:01:13 -07:00
DanClemmensen
121d4145d2 [ft4] support "channel" func of Programmable keys [#6583] 2019-03-13 12:50:19 -07:00
DanClemmensen
e7f1574d7b [ft4] whitespace/comment/prompts [#6583]
separate out the purely non-code changes prior to submitting the real patch
2019-03-12 13:41:46 -07:00
Dan Smith
ca1c960167 Add Ansoko and Greaval radio aliases
Fixes #6593
Fixes #6595
2019-03-11 06:47:04 -07:00
DanClemmensen
a9d1cc180e [ft4] add progress bar cleanly [#6573]
add the bar but without the gratuitous change to
run_tests ;-)
2019-03-10 14:42:25 -07:00
Dan Smith
3cc207dd5d Move http_user_agent to chirp_common and fix a stupid bug
This needs to be somewhere other than __init__.py because we overwrite that as
part of the win32 build, so just put it in chirp_common.

Related to #6563
2019-03-08 10:38:00 -08:00
DanClemmensen
860df8470a [ft4] correct frequency scale factor for FT-65 [#6577] 2019-03-07 13:54:36 -08:00
Dan Smith
43c527be0d Set the urllib user-agent string to something chirp-specific
Yes, this is the crazy way you have to do this for the OG urllib, but it
works in our favor here to just make sure everything is using the right thing.
Obviously we need to move this code to requests at some point, but since
repeaterbook just broke us with the cloudflare change, this is a point fix
for a current issue.

Fixes #6563
2019-03-08 07:29:06 -08:00
DanClemmensen
49ccc9a833 [ft4] fixups in FT65 support [#4787] 2019-03-05 10:35:57 -08:00
DanClemmensen
72c75345bb [ft4] put UI tones in normal order [#4787] 2019-03-04 16:37:22 -08:00
DanClemmensen
91bd847dd5 [ft4] whitespace cleanup [#4787]
Comments only.
2019-03-04 16:02:41 -08:00
Jim Unroe
112177a496 [KYD NC630A] fix valid_tuning_steps list. #6559 2019-03-03 19:13:12 -05:00
Jim Unroe
6664e28f52 [Retevis RT26] fix valid_tuning_steps list. #6557 2019-03-03 18:53:47 -05:00
Jim Unroe
361465a85b [Retevis RT23] fix valid_tuning_steps list. #6555 2019-03-03 18:37:38 -05:00
Jim Unroe
2d6c59fd72 [Retevis RT22] fix valid_tuning_steps list. #6553 2019-03-03 18:07:41 -05:00
Jim Unroe
79717a2627 [Retevis RT21] fix valid_tuning_steps list. #6551 2019-03-03 17:56:50 -05:00
Jim Unroe
e7149cc74b [Retevis RT1] fix valid_tuning_steps list. #6549 2019-03-03 17:41:00 -05:00
Jim Unroe
db86502695 [BTech GMRS-V1] Add additional firmware fingerprint. #5625 2019-03-03 17:20:29 -05:00
Jim Unroe
51ea9e45e5 [BF-T1] fix valid_tuning_steps list. #6513 2019-03-03 16:46:40 -05:00
Jim Unroe
8cee253f8a [TDQ8A] fix valid_tuning_steps list. #6547 2019-03-03 15:54:37 -05:00
Jim Unroe
855c0f084e [UV-B5] fix valid_tuning_steps list. #6543 2019-03-03 15:36:43 -05:00
Jim Unroe
08d835bb9e [BTech UV-50X3] fix valid_tuning_steps list. #6541 2019-03-03 15:08:46 -05:00
Tom Hayward
4a63ae73e8 [leixen] Fix valid_tuning_steps list. #6523 2019-03-02 08:46:37 -08:00
DanClemmensen
3521ac6a5a [ft4] make the tone code less ugly [#4787]
Tone encode and decode both now derive from A single shared mapping table.

This also patch includes whitespace changes, but only to pass cpep8. Another
patch follows to fix other whitespace and minor cleanups.
2019-03-01 15:14:16 -08:00
Dan Smith
bd9a4f5a89 Fix exposing proper tuning steps for UV3R
Fixes #6519
2019-03-01 14:38:41 -08:00
Jim Unroe
7d40eb7955 [UV-5X3] Add additional supported STEPS
Add 20.0 KHz and 50.0 KHz steps that are also supported by the BTech UV-5X3.

This patch and the previous patch also fixes the "STEP" issue for other
Baofeng and BTech radio models whose drivers use baofeng_common.py (such
as the Baofeng UV-6R, Baofeng WP970i variants such as the GT-3WP, BTech
GMRS-V1 and BTech MURS-V1).

related to #6501
2019-02-28 18:03:54 -05:00
DanClemmensen
9423373a92 [ft4] programmable keys names for the FT-65 [#4787]
the namelist for the FT-65 programmable keys differes for the one for the FT-4
2019-02-25 17:43:10 -08:00
DanClemmensen
04681e5839 [ft4] compander, 6.25 suppress, freq range fix [#4787]
a few fixups that dont fall into other categories.
the US fersons (FT-4XR and FT65R) don't allow the
6.25 KHz frequency step. The FT-65 has a feature the
FT-4 lacks (compander). The code had a leftover
"valid_frequencies statement.
2019-02-25 17:42:30 -08:00
DanClemmensen
796b941eed [ft4] improve serial i/o [#4787]
improved version ID checking code (more general, and
uses a radio type-specific id). Also, a bug that
prevented upload on the py3 branch is fixed
2019-02-25 17:11:28 -08:00
Dan Smith
0899279192 Add ft4 to cpep8 manifest
Related to #4787
2019-02-28 06:44:54 -08:00
DanClemmensen
92b89c0cbc [ft4] whitespace cleanup [#4787]
first of several patches. the next patches fix tone support,
improve FT-65 support, fix a py3 upload failure, and improve
version matching.
2019-02-25 15:46:36 -08:00
Dan Smith
d40f80ff5d Fix Wouxun KG-UVD1P steps
Fixes #6509
2019-02-26 12:03:57 -08:00
Dan Smith
3583a15b3b Fix tuning step exposure on UV-5X3
Fixes #6501
2019-02-26 11:58:55 -08:00
Dan Smith
86b9284898 Fix the bjuv55 driver mangling the uv5r driver's list of steps
This driver was importing and then mangling the uv5r.STEPS variable, which made
it incorrect for use in get_features(). This patch makes it copy the list
before doing so.

Fixes: #6503
2019-02-26 10:19:51 -08:00
Dan Smith
0354cfe9c7 Fix tuning step on Wouxun KG-UV9D Plus
Related to, but also closes #3509
2019-02-21 13:47:30 -08:00
Dan Smith
f47c578b86 Fix exposing non-default WP970I tuning steps
Fixes #6487
2019-02-21 11:43:41 -08:00
Zhaofeng Li
661295fe18 [th350] Enable programming all 128 channels
Fixes #6485
2019-02-20 20:00:03 -08:00
Dan Clemmensen
dbdf673dcb [ft4] add driver for Yeasu FT-4 and eventually FT-65 #4787
ft4.py passes unit tests on main tip and on py3 branch
2019-02-18 12:53:27 -08:00
Rhett Robinson
2f79c866d7 [ic2730] Support frequencies requiring a tuning step of 6.25 kHz. Fixes #6457
This radio stores some flags indicating the tuning step of the frequency, and the
frequency as a multiple of the tuning step. This patch adds support for a
frequency that is a multiple of 6.25 kHz for both the frequency and offset.
Still missing is support for a multiple of 25/3 kHz.
2019-02-18 16:07:06 -08:00
Dan Smith
cdabf02a84 Fix tuning step regression for h777 (Baofeng BF-888) driver
Related to #6467
2019-02-18 12:41:57 -08:00
Dan Smith
6ed0f6aa8f Fix gmrsuv1 driver for default tuning steps
#6461
2019-02-17 20:30:59 -08:00
Dan Smith
e1a866d4c1 Fix tuning steps for btech.py driver
Also caught by the default step change.

#6465
2019-02-17 20:28:29 -08:00
Dan Smith
36413a522f Fix exposed list of tuning steps for uv5r
The uv5r driver was taking the default list of steps, which after the recent change
to make that smaller, regressed the values it should be able to support. Since the
driver defines the compatible set, it should expose that in features.

#6469
#6467
2019-02-17 20:18:06 -08:00
Dan Smith
135ac167b8 Fix unittest adapter class
The adapter was ignoring tests that collect and return multiple failures at once,
so any CopyAll failures were ignored. This makes the adapter just pick off the first
one and raise it.

Found while reviewing the driver for #4787
2019-02-16 12:19:21 -08:00
Dan Smith
a7ce0ca2ea Fix Edges::do_oddsteps() test
This test was completely wrong, and not really running for any driver. Realized it was
doing something stupid while trying to run it against the CSV driver (which supports
DC->daylight).

Some radios were claiming to support steps they don't support because they were taking
the full list in chirp_common as a default, which is clearly wrong. This patch changes
the default to a very conservative set, which may cause some drivers to no longer accept
some frequencies that may be valid because they were not declaring their real supported
list.

This also uncovered at least one buggy driver that can't support anything other than
5kHz step frequencies (ic2730).

Found in the pursuit of #495
2019-02-15 10:31:10 -08:00
Dan Smith
7fc39a1478 Add a test for deleting memories and a radio feature flag for radios that can't
Shockingly we were missing an automated test for memory delete. Adding that
uncovered several issues in various drivers. Some drivers explicitly do not
do delete operations, so mark those in radiofeatures so we can skip the test
for them.

Related to #6455 #6453 #6451 #6449
2019-02-14 16:51:57 -08:00
Dan Smith
18642b0d0c Fix TH-UV3R-25 memory delete
The driver was calling set_raw() with the wrong size data

Fixes #6455
2019-02-14 16:50:02 -08:00
Dan Smith
47405c29a3 Fix FT50 calling missing method during memory delete
Fixes #6453
2019-02-14 16:47:30 -08:00
Dan Smith
db66813821 Make Boblov X3plus properly detect its own deleted memories
Fixes #6451
2019-02-14 16:45:26 -08:00