View Single Post
  #4   Spotlight this post!  
Unread 07-02-2014, 14:12
chris.boyle's Avatar
chris.boyle chris.boyle is offline
Programming Mentor
FRC #0068 (Truck Town Thunder)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Truck Town Thunder (Brandon)
Posts: 36
chris.boyle is on a distinguished road
Re: Using 4 joystick buttons with Case Statement

If you are looking to create a latch on a variable, you can use this method:

It works very well for us and it only updates the variable when something changes. We use this method for almost all inputs from the driver station.
Attached Thumbnails
Click image for larger version

Name:	Shift.jpg
Views:	29
Size:	78.0 KB
ID:	16146  
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639
Reply With Quote