src/org/usfirst/frc1039/TShirtCannonJava/commands/RotateUntilLimit.java
protected boolean isFinished() {
    	boolean gotToNext = (Robot.cannon.currentBarrel == Robot.cannon.nextBarrel);
    	boolean stopWatchFinished = mWatcher.isExpired();
    	
    	if((true == stopWatchFinished) || (true == gotToNext))
    	{
        	Robot.cannon.stopRotate();
        	System.out.print("Watch:"); 
        	System.out.print(stopWatchFinished); 
        	System.out.print(" Next:"); 
        	System.out.println(gotToNext); 
    		return true;
    	}
		return false;
        //return Robot.cannon.isLimitPressed();
    }
// 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()
Make this return true when this Command no longer needs to run execute ()
protected boolean isFinished() {
    	boolean gotToNext = (Robot.cannon.currentBarrel == Robot.cannon.nextBarrel);
    	boolean stopWatchFinished = mWatcher.isExpired();
    	if((true == stopWatchFinished) || (true == gotToNext))
    	{
        	Robot.cannon.stopRotate();
        	System.out.print("Watch:"); 
        	System.out.print(stopWatchFinished); 
        	System.out.print(" Next:"); 
        	System.out.println(gotToNext); 
    		return true;
    	}
		return false;
    }
protected boolean isFinished ( ) { boolean gotToNext = ( Robot . cannon . currentBarrel == Robot . cannon . nextBarrel ) ; boolean stopWatchFinished = mWatcher . isExpired ( ) ; if ( ( true == stopWatchFinished ) || ( true == gotToNext ) ) { Robot . cannon . stopRotate ( ) ; System . out . print ( "Watch:" ) ; System . out . print ( stopWatchFinished ) ; System . out . print ( " Next:" ) ; System . out . println ( gotToNext ) ; return true ; } return false ; }
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 ()
//return Robot.cannon.isLimitPressed();