View Single Post
  #7   Spotlight this post!  
Unread 01-11-2012, 03:39 AM
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: New to 2CAN and Jaguar

As long as you are getting a timeout from a send message call, there is something wrong with either your wiring or your configuration. Once you get past that, then you'll need to make sure you are calling all the right methods to enable the closed-loop control. Your first code snippet was much closer than this most recent post.

Calls like this are needed:

speedJag.SetSpeedReference(CANJaguar::kSpeedRef_Qu adEncoder);
speedJag.ConfigEncoderCodesPerRev(360);
speedJag.SetPID(P, I, D);
speedJag.EnableControl();
speedJag.Set(stick.GetAxis(axis) * 150.0);

Try using the jag in speed mode outside of RobotDrive first.

-Joe
Reply With Quote