|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Weird issue with the power distribution block | X-Istence | Electrical | 17 | 08-03-2009 18:32 |
| [FTC]: [FTC]: RobotC Template Problem (causing an FMS issue) and Potential Servo Prob | PackersFan | FIRST Tech Challenge | 11 | 26-01-2009 21:25 |
| An Issue with downloading the Master Code. | Neil [Coconuts] | Programming | 6 | 07-02-2008 14:03 |
| Issue with downloading code to the 2007 RC | thefro526 | Programming | 3 | 10-02-2007 17:26 |
| Potential Problem with "fighting over the goal" | Kyle Fenton | General Forum | 4 | 17-02-2002 10:21 |