diff --git a/src/org/usfirst/frc/team2059/robot/subsystems/MainArm.java b/src/org/usfirst/frc/team2059/robot/subsystems/MainArm.java index 2e1100f..04bbed3 100644 --- a/src/org/usfirst/frc/team2059/robot/subsystems/MainArm.java +++ b/src/org/usfirst/frc/team2059/robot/subsystems/MainArm.java @@ -90,7 +90,7 @@ public class MainArm extends PIDSubsystem { return false; } public double getShooterAngleError(){ - double correctedHeight = (RobotMap.goalHeight + 24) - 44; //44 is the distance between the ground and the sonar + double correctedHeight = (RobotMap.goalHeight + 16) - 44; //44 is the distance between the ground and the sonar return (180/Math.PI) * Math.atan(correctedHeight/(getSonarDistance()-1)); } public double getSonarDistanceRaw(){