Quote:
Originally Posted by thetonio96
public void teleopPeriodic() {
if(stick.getRawButton(1)==true){
//Some Code
}
}
|
Just remember that this should return a boolean, so you don't need the == true
just try, it simplifies the code and leaves less room for error.
Code:
public void teleopPeriodic() {
if(stick.getRawButton(1)){
//Some Code
}
}