Go to Post Calling all grandmas! We need 3000 crocheted ropes for team's! - Jon Stratis [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:09.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi