View Single Post
  #8   Spotlight this post!  
Unread 04-02-2014, 22:47
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How to grdually speed up the robot?

Quote:
Originally Posted by slibert View Post
However, we found out (we switched to java this year, it used to work in C++) that the getRotate() didn't work as we expected, so instead we use

double rotate = joystick.getRawAxis(4);

In fact, joystick.getTwist() for us was returning 0 until we moved it a bit, then it'd be stuck at 1. Not sure what's going on there....
It looks like C++ defines the twist axis as Axis 4 and Java defines it on Axis 3. This is probably due to different joysticks behaving differently. I know the Logitech Axis 3 defines the throttle on Axis 3 and doesn't have a twist, but the Logitech Extreme 3d Pro defines the twist on Axis 3 and throttle on Axis 4.

I filed artf1718
Reply With Quote