View Single Post
  #2   Spotlight this post!  
Unread 07-04-2009, 09:53
595294001 595294001 is offline
FTC World Champion
FTC #2820 (Longhorn Robotics)
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Canada
Posts: 40
595294001 is an unknown quantity at this point
Re: [FTC]: controller programming

The top-hat activates like this:

"if(joystick.joy1_TopHat == 1){
//do something
}"

It's really just four buttons and the variable "joystick.joy1_TopHat" will contain one of five values representing the pressed button (the fifth value is for no buttons). I forget which order the buttons correspond in now, but it's pretty easy to use,

Good luck and we'll see you in atlanta,

Alex
2820
Reply With Quote