View Single Post
  #12   Spotlight this post!  
Unread 02-02-2009, 19:39
bomber7 bomber7 is offline
Humanoid
FRC #0585
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: CA - Tehachapi
Posts: 20
bomber7 is an unknown quantity at this point
Re: Running the Motors Backward in WindRiver & cRIO Freezes

I know this thread might be a little dead, but I think I might know the solution.

If you access the 'raw' values of the joysticks you get -1 to 1 ( 0 is stop ), if you access the 'raw' values of pwms you get 1 to 254 (128 is stop)!!! so 1 WOULD run your motor full speed, while -1 would be invalid.

Try setting it to 254 (not 255) and seeing if you still get the error.

I'm pretty certain the above applies for setting raw values on the pwms, I am not sure if it is true for Jaguars.


...............
Edit: On second thought, after reviwing the relevant source files of the WPI library I find it unlikely that the above is true.

Last edited by bomber7 : 02-02-2009 at 19:51.
Reply With Quote