View Single Post
  #6   Spotlight this post!  
Unread 01-02-2017, 18:44
ben47955 ben47955 is offline
Registered User
FRC #3996 (RIKITIK)
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Canada
Posts: 14
ben47955 is an unknown quantity at this point
Re: Novice Coder Help

Code:
isOpen = false;
		buttonValue = mainStick.getTrigger();
		if(buttonValue)
		{
			if(!isOpen)
			{
				gearDropper.set(true);
			}
			else
			{
				gearDropper.set(false);
			}
			
			isOpen = !isOpen;
			
		}
isOpen will be always false, you have to put the variable global.

Check if your joystick is really in port 0 in driverStation.
Reply With Quote