diff --git a/src/org/usfirst/frc/team2059/robot/subsystems/MainArm.java b/src/org/usfirst/frc/team2059/robot/subsystems/MainArm.java index 014de27..50d28d4 100644 --- a/src/org/usfirst/frc/team2059/robot/subsystems/MainArm.java +++ b/src/org/usfirst/frc/team2059/robot/subsystems/MainArm.java @@ -38,10 +38,11 @@ public class MainArm extends PIDSubsystem { return potToDegrees(getRaw()); } private double potToDegrees(double pot) { - if (limitSwitchBottom.get()){ + System.out.println(limitSwitchBottom.get()); + if (!limitSwitchBottom.get()){ RobotMap.zeroDegrees = getRaw(); System.out.println("====Bottom Switch====\n" + getRaw()); - } else if (limitSwitchTop.get()){ + } else if (!limitSwitchTop.get()){ RobotMap.ninetyDegrees = getRaw(); System.out.println("====Top Switch====\n" + getRaw());