View Single Post
  #3   Spotlight this post!  
Unread 08-02-2017, 19:49
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 161
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: Detecting countours

To add on to MuskieProgramme,

Quote:
Originally Posted by verlander13 View Post
Code:
	public boolean isFinished() {
		if(centerX1  == 237.0 + 10){
			return isCenter = true;
		}
		else if(centerX1 == 237.0 - 10){
			return isCenter = true;
		}
		else{
			return isCenter == false;
		}
	}
This doesn't do what you think it does
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote