View Single Post
  #2   Spotlight this post!  
Unread 21-01-2011, 15:33
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: setX() not working

Quote:
Originally Posted by vinnie View Post
Not sure if I should post this here or in the Java section...
I was trying to use setX to set a speed of the motor. I set up the speed and position references. But the Jaguar would not do anything (RobotDrive works fine). I did not set PID and am wondering if this could be the problem. Thanks in advance for your help.
If you have configured the CANJaguar to Speed Control mode, then you must do several things to make it work... Set a speed reference, set the number of codes per rotation your encoder outputs, set the PID values (they default to 0 which will do nothing), then call enableControl().

-Joe
Reply With Quote