Remove temporary SWR meter code

Comment out applicable SWR meter code, still in base
This commit is contained in:
JeffersGlass
2016-02-23 22:54:48 -06:00
parent 7c4e79fcec
commit e12737c26b
2 changed files with 378 additions and 2 deletions

View File

@ -123,6 +123,10 @@ const int PIN_BUTTON_MODE = 4;
const int PIN_BUTTON_BAND = 0;
const int BUTTON_DEBOUNCE_TIME = 10; //milliseconds
//SWR Sensor Pins
const int PIN_SWR_FORWARD = A1;
const int PIN_SWR_REVERSE = A0;
void setup(){
// inialize LCD, display welcome message
lcd.begin(20, 4);
@ -148,6 +152,9 @@ void setup(){
pinMode(PIN_BUTTON_BAND, INPUT);
digitalWrite(PIN_BUTTON_BAND, HIGH);
pinMode(PIN_SWR_FORWARD, INPUT);
pinMode(PIN_SWR_REVERSE, INPUT);
lcd.clear();
lcd.setCursor(2, 7);
lcd.print("WELCOME!");
@ -259,8 +266,23 @@ void displayInfo(){
lcd.print(modeNames[currMode]);
//DEBUG
lcd.setCursor(0,0);
lcd.print(getCurrentBand());
//lcd.setCursor(0,0);
//lcd.print(getCurrentBand());
/*float fwd = analogRead(PIN_SWR_FORWARD);
float rev = analogRead(PIN_SWR_REVERSE);
float gamma = rev/fwd;
float swr = (1 + abs(gamma)) / (1 - abs(gamma));
lcd.setCursor(0, 1);
lcd.print(int(fwd));
lcd.setCursor(4, 1);
lcd.print(int(rev));
lcd.setCursor(8, 1);
lcd.print(gamma);
lcd.setCursor(14, 1);
lcd.print(swr);*/
}
boolean checkButtonPress(int pin){