goshante / ats20_ats_ex

Advanced and re-imagined firmware for ATS-20 Receiver based on Si4735 (or Si4732). Прошивка с расширенным функционалом.
MIT License
22 stars 5 forks source link

Shortwave band frequency save #12

Open Berry2525 opened 3 weeks ago

Berry2525 commented 3 weeks ago

I hope that when switching the shortwave band, the frequency of the current band can be saved, so that if you switch the band back and forth, you can listen to it at the previous frequency, just like the original firmware,Thank you!

goshante commented 2 weeks ago

This will not be implemented because now SW is the only band. It has multiple sub-bands that work like bookmarks. In earlier versions, each sub-band existed as a dedicated band. As a regular band, each SW segment could save the recent frequency for each segment.

This is a bad implementation because:

  1. Scrolling between bands assumes you can easily access the desired frequency. So, you switch to the nearest one and quickly tune to the nearest frequency. If you saved 5200 frequency for the 4500 band and you want to access the 4100 frequency, you have to scroll more than 1 MHz to reach the desired frequency. This is inconvenient. Improving old band logic to work properly requires more space, I don't want to mess everything up just for this.
  2. If you stopped on the 3000 band and manually tuned to 15000 KHz, 15000 will be saved to the 3000 band. This requires extra code to fix it. Reworking the band logic requires reimplementation, optimization, and removal of some elements, which I don't want to do.
  3. The current implementation saves more flash space. A single SW band has only one frequency to save, but when you move out of the SW band without touching the tuning knob, your last frequency will be saved to SW, allowing you to access it again later.