View Single Post
  #3   Spotlight this post!  
Unread 09-02-2015, 08:26
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Help Coding a "Creep Mode"

Quote:
Originally Posted by apm4242 View Post
However, now I found a map saying the left joystick is button 8, not 9... Odd that it's from the same source.
During the Beta Test, there was a strong preference among the Java and C++ teams for the button numbers in the code to match the labels on the joysticks/gamepads. The LabVIEW functions stayed with the zero-based arrays. It's a little confusing if you're moving between programming environments.

You do want the ninth button. But its value is in array index 8, because the first button is in index 0.
Reply With Quote