View Single Post
  #12   Spotlight this post!  
Unread 30-03-2014, 02:04
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

Makes no sense that the axis is causing the Talon to give a different voltage than the button. If it were an electrical problem, you should see consistent and identical results for axis vs. button.

One problem I've frequently seen is:
Code:
if (js.getRawButton(SHOOTER_BUTTON))
    shooter.set(1.0);
System.out.println(shooter.get());
... 200 lines of code later ...
Code:
shooter.set(0.7);
Prints 1.0 but sets to 0.7.

If you're multi-threading, maybe something else in another thread is modifying the shooter?

It just doesn't make sense that the problem is electrical related. If you don't want to post your code, it's fine, but we can at least help you eliminate the possibility of the problem being your code.

Last edited by Patrick Chiang : 30-03-2014 at 02:07.