martinbradford/101Cats

BUG: Band selection app <-> radio.

Closed this issue · 7 comments

When tuning the radio to 27 MHz CB band, the app reflects 24.5 band.
When tuning the radio to a GEN frequency of 6130 kHz, the app reflects 5 Band
So it's reflecting the lower HAM band.

Version 1.0.9.7

Kees
ON9KVE

Are you referring to the band selection combo-box, or the textual description below the frequency display?

The combobox Martin

Ok - when I get my PC booted up tomorrow, I'll take a look to see how that is derived. Been a long time since I implemented that and I've forgotten.

Unfortunately, the Band Select CAT command is input only - the radio does not report the band. 101Cats monitors the tuned frequency and infers the band. The frequencies that you quote above are not in the amateur bands and my inferred value is the next band down - what do you think it should be?

OK - the code that infers the band is currently :

  _bandLimits.Add(new BandLimits(1.8e6, 3.5e6, "1.8"));
       _bandLimits.Add(new BandLimits(3.5e6, 5e6, "3.5"));
       _bandLimits.Add(new BandLimits(5e6, 6.999999e6, "5"));
       _bandLimits.Add(new BandLimits(7.0e6, 10.1e6, "7"));
       _bandLimits.Add(new BandLimits(10.1e6, 14.0e6, "10"));
       _bandLimits.Add(new BandLimits(14.0e6, 18.068e6, "14"));
       _bandLimits.Add(new BandLimits(18.068e6, 21.0e6, "18"));
       _bandLimits.Add(new BandLimits(21.0e6, 24.5e6, "21"));
       _bandLimits.Add(new BandLimits(24.5e6, 28.0e6, "24.5"));
       _bandLimits.Add(new BandLimits(28.0e6, 50.0e6, "28"));
       _bandLimits.Add(new BandLimits(50.0e6, 70.0e6, "50"));
       _bandLimits.Add(new BandLimits(70.0e6, 80.0e6, "70"));

so it is working the way that was intended. The band limits need to be contiguous - and it is not really practical to put multiple "general coverage" entries between the real amateur bands - so the definition of a band limit is always going to be wider than the amateur band that it is attached to. I am open to changing the definitions of the band limits, but it will always look strange to someone!

Can't you add a codeswitch that changes "y" if found aband, and then if switch = n it's GEN ?
Just asking ...

It really is overcomplicating a working bit of code for the sake of keeping a picky code tester happy! :-)

The official way of reporting the selected band is the band name text field under the frequency dissplay - that is user configurable! Sorry, but I'm closing this one!