View Single Post
  #2   Spotlight this post!  
Unread 21-01-2009, 17:16
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: How do I Link a (group of) Joystick button(s) to a motor?

I can't see anything wrong with the code you posted. I'm not sure that you are reading the stick, however.

Print out the status of "m_rollerStick->GetRawButton(X)" and make sure you are correctly reading the buttons. This will also indicate whether for some reason the block of code isn't getting run because of a conditional somewhere.

Lastly, make sure you don't re-set "m_roller" later in the code.
Reply With Quote