View Single Post
  #2   Spotlight this post!  
Unread 29-03-2014, 20:36
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: 8 volts over talons

Can you post the relevant part of your code?

Something like this should work:
Code:
if (joystick.getRawButton(SHOOTER_BUTTON))
    talon.set(1.0);
Sometimes a button on a joystick is read as an axis on the computer. For example, the xbox 360 controller finger triggers (bumpers or whatever they're called) actually count as axis and you'll get a variable value instead of a true/false.