View Single Post
  #1   Spotlight this post!  
Unread 17-02-2010, 14:49
mattbutts mattbutts is offline
Registered User
FRC #1741 (Red Alert)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Greenwood, IN
Posts: 4
mattbutts is an unknown quantity at this point
Potential Issue with the C++ CANJaguar Implementation

I have our Jaguars all running in CAN communication mode and the ones that are being controlled in voltage control are working great.

However, when I try to control a Jaguar in position control, I am getting garbage back from the encoder. I verified that everything was setup correctly by testing it with the BDC-COM utility. I can see the encoder perfectly there, and I can tune the controller and it works great.

We have a display for the encoder position on the driver station, and if I watch the value here it jumps around erratically (3 -> 8 -> 11 -> 65535 etc.). This makes me think it has something to do with the way the code is unpacking the data from the CAN messages, but I am not familiar enough with the messages to know that this is the case.

I guess my real question is: Has anyone else been able to get meaningful data back from a CANJaguar, and if so, did you have to do anything special? I really need to be able to get the position reliably.

Thanks,
Matt
Reply With Quote