Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Potential Issue with the C++ CANJaguar Implementation (http://www.chiefdelphi.com/forums/showthread.php?t=82904)

mattbutts 17-02-2010 14:49

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

mattbutts 19-02-2010 09:09

Re: Potential Issue with the C++ CANJaguar Implementation
 
We were able to get it working. We believe that somehow the Jaguar was getting set to expect a potentiometer rather than an encoder. Not sure how though as we only had code in there for the encoder configuration.

Anyway, it works great now.

M.Rehberg 19-02-2010 13:26

Re: Potential Issue with the C++ CANJaguar Implementation
 
Would it be expecting an Absolute Encoder that outputs a 0-5 V signal based on shaft position? If you are working with a position control mode, that is what I would expect Vs using a relative quadrature encoder.

Mike R.


All times are GMT -5. The time now is 04:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi