From 8784ea0919d5294e8d7ae3094547a19651efe268 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 28 Mar 2012 14:16:22 +0100 Subject: [PATCH] Issue #92 - Fixed typo and added extra bands --- application/libraries/Frequency.php | 48 +++++++++++++++++++++++++++++ application/views/qso/index.php | 4 ++- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/application/libraries/Frequency.php b/application/libraries/Frequency.php index 9099aa53..b21c17eb 100644 --- a/application/libraries/Frequency.php +++ b/application/libraries/Frequency.php @@ -168,6 +168,54 @@ class Frequency { return "1296000000"; } } + + if($band == "13cm") { + if ($mode == "CW") { + return "232080000"; + } elseif($mode == "PSK31" || $mode == "RTTY" || $mode == "JT65") { + return "232080000"; + }elseif($mode == "SSB") { + return "232080000"; + } else { + return "232080000"; + } + } + + if($band == "9cm") { + if ($mode == "CW") { + return "340000000"; + } elseif($mode == "PSK31" || $mode == "RTTY" || $mode == "JT65") { + return "341000000"; + }elseif($mode == "SSB") { + return "341000000"; + } else { + return "341000000"; + } + } + + if($band == "6cm") { + if ($mode == "CW") { + return "567000000"; + } elseif($mode == "PSK31" || $mode == "RTTY" || $mode == "JT65") { + return "567000000"; + }elseif($mode == "SSB") { + return "567000000"; + } else { + return "567000000"; + } + } + + if($band == "3cm") { + if ($mode == "CW") { + return "1022500000"; + } elseif($mode == "PSK31" || $mode == "RTTY" || $mode == "JT65") { + return "1022500000"; + }elseif($mode == "SSB") { + return "1022500000"; + } else { + return "1022500000"; + } + } } } diff --git a/application/views/qso/index.php b/application/views/qso/index.php index 5dccf057..c3986c69 100644 --- a/application/views/qso/index.php +++ b/application/views/qso/index.php @@ -99,8 +99,10 @@ - + + +