View Single Post
  #1   Spotlight this post!  
Unread 22-01-2014, 09:15
F Elliott F Elliott is offline
Registered User
FTC #8114
Team Role: Teacher
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Dallas
Posts: 56
F Elliott is an unknown quantity at this point
Re: [FTC]: Servo to button programming teleop

The only issue I see with your code is I suspect joy1Btn(5) and joy1Btn(7) should be using joy2Btn(5) and joy2Btn(7). The rest looks fine.

Be sure you have the Joystick-Competition debugger window open and that the dual joysticks are turned on. Fiddle around with the settings in that window. I can't recall off the top of my head what combination works. When it's working you will see the button and joysticks in that window light up with white squares on either joystick. You can try this without running your program. I'll try to get you a screen shot tonight.

Also be aware that on the debugger window the buttons will be shown as 0-7 when pressed but the arguments to joy1Btn and joy2Btn take on corresponding values 1 to 8.

Last edited by F Elliott : 22-01-2014 at 10:02.
Reply With Quote