View Single Post
  #9   Spotlight this post!  
Unread 09-02-2008, 16:21
program1's Avatar
program1 program1 is offline
Registered User
AKA: RJ
FRC #2441
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryknoll
Posts: 43
program1 will become famous soon enough
Re: Programing joystick buttons

it mostly depends on which controler you are using, if your using controler 1:

p1_sw_trig
p1_sw_top
p1_sw_aux1
p1_sw_aux2

to program the buttons is acutally very simple

pwm01 = 127

if (p1_sw_trig == 1)
{pwm01 = 150}

this program says "while controler 1's trigger is being pressed, pwm01 will move at 150"

this is the way i was taught anyway, the other ways will work also
__________________
ok, who ate my hot pocket?