Possible fix and log for autosetarmposition

This commit is contained in:
Austen Adler 2016-09-22 10:19:48 -04:00
parent 8a5f7f7877
commit fc7c6545a4
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

View File

@ -24,10 +24,8 @@ public class AutoSetArmPosition extends CommandBase {
// Make this return true when this Command no longer needs to run execute() // Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() { protected boolean isFinished() {
// Stop when either limit switch is hit // Stop when either limit switch is hit
if(Math.abs(pos-mainArm.getDegrees()) <= 1){ System.out.println("AutoSetArmPosition.isFinished(): " + (Math.abs(pos - mainArm.getDegrees()) <= 1));
return false; return Math.abs(pos - mainArm.getDegrees()) <= 1;
}
return false;
} }
// Called once after isFinished returns true // Called once after isFinished returns true
protected void end() { protected void end() {