Commit Graph

4 Commits

Author SHA1 Message Date
Mo 59fb74be1d Antenna Calculator: fix out-of-range handling + add Comet W100RX (#3321)
* Antenna Calculator: handle out-of-range frequencies

Fix an out-of-bounds read in update_result(): when the required
quarter-wave length was shorter than the fully-collapsed antenna, the
element interpolation indexed elements[-1]. Guard the frequency range and
report 'retracted' (above the fundamental range; a wideband RX whip still
receives here via harmonics) or 'fully ext.' (below range) instead of a
garbage element count.

* Add Comet W100RX to the sample WHIPCALC/ANTENNAS.TXT

Comet W100RX telescopic RX whip, segment lengths (mm) from the Comet
W100RX instruction sheet: 200/300/400/510/615/800/986.
2026-09-16 18:30:36 +02:00
eried 9ee83c5dbb Update ANTENNAS.TXT 2020-06-28 21:02:43 +02:00
eried 32b07d9f4d Update ANTENNAS.TXT 2020-06-28 14:19:30 +02:00
euquiq 8443008dfa New Antenna length Calculator
It reads the antennas definition from a txt file:

WHIPCALC/ANTENNAS.TXT

Inside the textfile you place each antenna you own with the following sintaxis:

<antenna label> <elements length in mm, separated by a space>

For example:

ANT500 185 315 450 586 724 862

Input the required frequency, adjust the wave type (full / half / quarter, etc.) and the calculator will return the antenna length (metric and imperial) while also calculating how much you need to expand the fitting antennas you got defined on the txt.

It may return up to 8 matching antennas, which is more than enough (normally you will have 2, perhaps 3 telescopic antennas around for your portapack)

If by any chance your antennas txt got more than 8 antennas, and more than 8 matches the length of the freq / wave you want, it will only show the first 8 matching antennas and will warn you at the bottom that there are even more results (hidden).

All calculations now are rounded into the best integer, considering first decimal, so precision is double than the original antenna calculator app.
2020-06-27 23:59:11 -03:00