egzumer / uv-k5-firmware-custom

A merge between https://github.com/OneOfEleven/uv-k5-firmware-custom and https://github.com/fagci/uv-k5-firmware-fagci-mod
Apache License 2.0
1.32k stars 423 forks source link

Feature request NOAA and Spectrum Analyzer #591

Closed PilotBob42 closed 4 months ago

PilotBob42 commented 4 months ago

I live in the States and the NOAA feature is still a nice to have here. It, of course, launches off the F+5 combo from the keypad, but the spectrum analyzer feature is also tied to the F+5 button. So, even if you sacrifice something else to make enough room in the build to have both, there is no way to launch both.

How hard would it be to change the launching of the spectrum analyzer to one of the programmable options for side button 1 or 2, or perhaps even long press M? That way the keypad would stay correct as marked for NOAA, but you could still launch the analyzer?

PilotBob42 commented 4 months ago

I dusted off some very very old C coding skills and worked out a way to get what I wanted (NOAA + Spectrum simultaneously). I moved the spectrum analyzer and scan range features from the "5 NOAA" button to the "* Scan" button. This hides the regular scan feature and the CTCSS scanner, but having the VFO settable scan range is better and the "4 FC" function will scan freq and CTCSS so the latter was redundant. Also had to fix up the code a bit around the "Key_5 case in processFKeyFunction of main.c, but I now have factory standard NOAA function PLUS the spectrum analyzer and scan range feature. Unfortunately, to make the 60k limit, I had to dump DTMF calling from the build to make room (never use it anyway).

Did all this a bit quick and dirty since it was just for me, but if anyone is interested in this small but useful change for folks in range of a NOAA station, let me know and I'll clean it up more and perhaps submit it for review.