View Single Post
  #1   Spotlight this post!  
Unread 07-11-2010, 22:37
sam_who sam_who is offline
Registered User
FRC #2190
 
Join Date: Oct 2010
Location: Mississippi
Posts: 42
sam_who is an unknown quantity at this point
Joystick motion to CAN connected jaguar

I'm having an issue with black jags connected to the crio.

I'm using C++.

I have a logitech game pad connected to the driver station. In this particular instance, I'm using the Twist axis. When reading the axis, I can see the output swing between -1.0 <= output <= 1.0.

I'm operating the jag in speed mode. I'm monitoring the percent of throttle with the CrossTheRoadElectronics web page. Yes, I'm using the 2CAN.

I'm using the output of the Twist axis as the argument to the Set command.
myJag.Set (logitech.GetTwist () );

I find that I'm getting 99.99% throttle with only 25% axis movement.

-0.25 < axis_output < 0.25 yields -99.99% < speed < 99.99%

Using myJag.Get () confirms the 0.25 value.

I reduced the axis_output by a factor of four to compensate

myJag.Set (logitech.GetTwist () * 0.25 );

but I'd really like to know why this is the case. Can anybody help?
Reply With Quote