|
|
@ -113,70 +113,70 @@ func ValidateDate(inputStr string) (ref, errorMsg string) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//IsBand retuns true if the passed input string is a valid string
|
|
|
|
//IsBand retuns true if the passed input string is a valid string
|
|
|
|
func IsBand(inputStr string) (result bool, lowerLimit, upperLimit float64) {
|
|
|
|
func IsBand(inputStr string) (result bool, lowerLimit, upperLimit float64, altBandName string) {
|
|
|
|
switch strings.ToLower(inputStr) {
|
|
|
|
switch strings.ToLower(inputStr) {
|
|
|
|
case "2190m":
|
|
|
|
case "2190m":
|
|
|
|
return true, 0.1357, 0.1378
|
|
|
|
return true, 0.1357, 0.1378, "tbd"
|
|
|
|
case "630m":
|
|
|
|
case "630m":
|
|
|
|
return true, 0.472, 0.479
|
|
|
|
return true, 0.472, 0.479, "tbd"
|
|
|
|
case "560m":
|
|
|
|
case "560m":
|
|
|
|
return true, 0.501, 0.504
|
|
|
|
return true, 0.501, 0.504, "tbd"
|
|
|
|
case "160m":
|
|
|
|
case "160m":
|
|
|
|
return true, 1.8, 2.0
|
|
|
|
return true, 1.8, 2.0, "1.8Mhz"
|
|
|
|
case "80m":
|
|
|
|
case "80m":
|
|
|
|
return true, 3.5, 4.0
|
|
|
|
return true, 3.5, 4.0, "3.5Mhz"
|
|
|
|
case "60m":
|
|
|
|
case "60m":
|
|
|
|
return true, 5.06, 5.45
|
|
|
|
return true, 5.06, 5.45, "5Mhz"
|
|
|
|
case "40m":
|
|
|
|
case "40m":
|
|
|
|
return true, 7.0, 7.3
|
|
|
|
return true, 7.0, 7.3, "7Mhz"
|
|
|
|
case "30m":
|
|
|
|
case "30m":
|
|
|
|
return true, 10.1, 10.15
|
|
|
|
return true, 10.1, 10.15, "10Mhz"
|
|
|
|
case "20m":
|
|
|
|
case "20m":
|
|
|
|
return true, 14.0, 14.35
|
|
|
|
return true, 14.0, 14.35, "14Mhz"
|
|
|
|
case "17m":
|
|
|
|
case "17m":
|
|
|
|
return true, 18.068, 18.168
|
|
|
|
return true, 18.068, 18.168, "18Mhz"
|
|
|
|
case "15m":
|
|
|
|
case "15m":
|
|
|
|
return true, 21.0, 21.45
|
|
|
|
return true, 21.0, 21.45, "21Mhz"
|
|
|
|
case "12m":
|
|
|
|
case "12m":
|
|
|
|
return true, 24.890, 24.99
|
|
|
|
return true, 24.890, 24.99, "24Mhz"
|
|
|
|
case "10m":
|
|
|
|
case "10m":
|
|
|
|
return true, 28.0, 29.7
|
|
|
|
return true, 28.0, 29.7, "28Mhz"
|
|
|
|
case "6m":
|
|
|
|
case "6m":
|
|
|
|
return true, 50, 54
|
|
|
|
return true, 50, 54, "50Mhz"
|
|
|
|
case "4m":
|
|
|
|
case "4m":
|
|
|
|
return true, 70, 71
|
|
|
|
return true, 70, 71, "70Mhz"
|
|
|
|
case "2m":
|
|
|
|
case "2m":
|
|
|
|
return true, 144, 148
|
|
|
|
return true, 144, 148, "144Mhz"
|
|
|
|
case "1.25m":
|
|
|
|
case "1.25m":
|
|
|
|
return true, 222, 225
|
|
|
|
return true, 222, 225, "222Mhz"
|
|
|
|
case "70cm":
|
|
|
|
case "70cm":
|
|
|
|
return true, 420, 450
|
|
|
|
return true, 420, 450, "432Mhz"
|
|
|
|
case "33cm":
|
|
|
|
case "33cm":
|
|
|
|
return true, 902, 928
|
|
|
|
return true, 902, 928, "tbd"
|
|
|
|
case "23cm":
|
|
|
|
case "23cm":
|
|
|
|
return true, 1240, 1300
|
|
|
|
return true, 1240, 1300, "tbd"
|
|
|
|
case "13cm":
|
|
|
|
case "13cm":
|
|
|
|
return true, 2300, 2450
|
|
|
|
return true, 2300, 2450, "tbd"
|
|
|
|
case "9cm":
|
|
|
|
case "9cm":
|
|
|
|
return true, 3300, 3500
|
|
|
|
return true, 3300, 3500, "tbd"
|
|
|
|
case "6cm":
|
|
|
|
case "6cm":
|
|
|
|
return true, 5650, 5925
|
|
|
|
return true, 5650, 5925, "tbd"
|
|
|
|
case "3cm":
|
|
|
|
case "3cm":
|
|
|
|
return true, 10000, 10500
|
|
|
|
return true, 10000, 10500, "tbd"
|
|
|
|
case "1.25cm":
|
|
|
|
case "1.25cm":
|
|
|
|
return true, 24000, 24250
|
|
|
|
return true, 24000, 24250, "tbd"
|
|
|
|
case "6mm":
|
|
|
|
case "6mm":
|
|
|
|
return true, 47000, 47200
|
|
|
|
return true, 47000, 47200, "tbd"
|
|
|
|
case "4mm":
|
|
|
|
case "4mm":
|
|
|
|
return true, 75500, 81000
|
|
|
|
return true, 75500, 81000, "tbd"
|
|
|
|
case "2.5mm":
|
|
|
|
case "2.5mm":
|
|
|
|
return true, 119980, 120020
|
|
|
|
return true, 119980, 120020, "tbd"
|
|
|
|
case "2mm":
|
|
|
|
case "2mm":
|
|
|
|
return true, 142000, 149000
|
|
|
|
return true, 142000, 149000, "tbd"
|
|
|
|
case "1mm":
|
|
|
|
case "1mm":
|
|
|
|
return true, 241000, 250000
|
|
|
|
return true, 241000, 250000, "tbd"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false, 0, 0
|
|
|
|
return false, 0, 0, ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func getDefaultReport(mode string) (modeType, defaultReport string) {
|
|
|
|
func getDefaultReport(mode string) (modeType, defaultReport string) {
|
|
|
|