[chirp_devel] Before I commit my improvements to anytone.py (wrt Powerwerx DB-750X)
Craig Jones
Sun May 14 18:03:52 PDT 2023
(I'm finally getting back to this issue I started working on last year.)
First of all, who on this list has an *AnyTone 5888UV*, a *Polmar
DB-50M*, or a *Intek HR-2040*?
The *anytone.py* driver currently claims to support 4 radios (the 3
above, plus the *PowerWerx DB-750X*, which is what I have). I have found
a half dozen discrepancies between my actual images and what the driver
specifies -- differences in locations and/or field sizes within the
image map. For the moment, I copied anytone.py as powerwerx_db750x.py
and made the necessary changes. I also *added bank support* *plus a
number of settings options *(programming lockout, RBG colors, etc.)
while I was at it. That is all working for me. My question is, how I
should proceed to commit my work? I see a number of options, here:
1. Add my powerwerx_db750x.py to the drivers and remove the DB-750X
registration from anytone.py. I'd include copious comments in both files
pointing to each other.
2. Merge my changes back into anytone.py, and work out the logic to make
my changes conditional between the models.
3. Do #1 first, but plan on getting to #2 soon.
Since I don't have access to the 3 other radios, *I can't personally
test that my changes are benign *for them. So, adding
powerwerx_db750x.py as a separate driver is the safest route. But that
would unnecessarily duplicate 700 lines of code. Also, it would be a
shame if the new features I added (banks, settings) would be useful for
those other models but only appeared in the DB-750X driver.
Please advise.
P.S. I'm curious. Does Chirp send back usage telemetry? Do we know if
anyone is even using Chirp with those other radio models anymore?
NOTE: The biggest discrepancy, BTW, is that the flags map changed from 4
bits per channel to 8, to accommodate a bank assignment 0-10 (A-J).
--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20230514/d76d6de7/attachment-0001.html
More information about the chirp_devel
mailing list