![]() |
Jaguar Speed & Position Control with Encoders
Last year we tried to use the Jaguar Motor Controller's position and speed control functions in our Ultimate Accent bot. We got the BDC-COMM utility to work but couldn't work out the "C" programming.
We've had good success on the FTC team using the Matrix motor controller and would like to achieve a similar performance with Jaguars. I'd appreciate any feedback or point me to a thread where this is discussed. |
Re: Jaguar Speed & Position Control with Encoders
Quote:
While we use Java, that should be similar to the API we use, which can be found here for all of the classes used in WPILibJ, or here for the CANJag class. Does anyone know of similar documentation for C++? |
Re: Jaguar Speed & Position Control with Encoders
Quote:
|
Re: Jaguar Speed & Position Control with Encoders
The PID functionality of the Jaguars does work, but adding CAN can be expensive depending on which adapter you use.
The PID on the cRIO is just as fast and as powerful as the one on the jaguar, but works with all types of speed controllers and sensors. If you're looking for basic getting started examples, there are plenty for PID on the cRIO. |
Re: Jaguar Speed & Position Control with Encoders
Quote:
|
Re: Jaguar Speed & Position Control with Encoders
brennonbrimhall,
Thanks so much for the help! I was very excited about the performance of the Jaguar/CIM running on the bench through BCD-COMM. If this can be done through the cRIO, I'm willing to forge ahead. I've read through VEX and TI manuals, read the NI forums but no joy finding a servo/motor/Jaguar set-up problem to solve the problem. I guess I'll need to delve into programming language to get the complete picture :O. |
Re: Jaguar Speed & Position Control with Encoders
Quote:
Quote:
Quote:
Quote:
|
Re: Jaguar Speed & Position Control with Encoders
Quote:
The serial CAN interface is somewhat inefficient, and you may find that if you send to many updates, it may use more cRIO throughput then running a 50 or 100hz PID on the cRIO would. One option would be to invest in the 2CAN. Another option would be to limit the amount of CAN traffic. Setting a setpoint every few seconds isn't a problem. Changing setpoints at 50hz to multiple jaguars and requesting lots of status can be a problem. |
Re: Jaguar Speed & Position Control with Encoders
Quote:
|
Re: Jaguar Speed & Position Control with Encoders
We successfully utilized Jags last year with CAN bus and a position sensor. We were going to also use the speed sensor but had wired a hall-effect sensor for speed vice an encoder. The Jag could not utilize the hall-effect sensor.
Couple of things we learned. 1. Wire the serial port of the cRio to the first Jag, than CAN to the other Jags 2. Don't forget the terminator on the last Jag 3. ReImage the cRio with CAN support (that one took us a while to learn :) 4. Write simple test programs to exercise the Jag before integrating Jag support into your overall robot code. Its MUCH easier to debug. Don't forget, Jags also work well with limit switches (CAN and PWM control). Good luck with the Jags this year. |
Re: Jaguar Speed & Position Control with Encoders
Quote:
I know none of these are that big a deal individually, but when you're dealing with multiple snags it can get daunting. What I meant is: I wanted to make sure there wasn't some issue like those with the cRIO CAN setup that was preventing proper operation. |
Re: Jaguar Speed & Position Control with Encoders
Quote:
Also, I don't think that a drivetrain used in FRC will benefit from being updated 100 times a second vs 1000. Where did you find the 1000hz number? I'm not saying it's wrong, but I couldn't find it online. |
Re: Jaguar Speed & Position Control with Encoders
Quote:
Quote:
Quote:
|
Re: Jaguar Speed & Position Control with Encoders
Quote:
|
Re: Jaguar Speed & Position Control with Encoders
Quote:
http://www.chiefdelphi.com/forums/sh...6&postcount=41 |
| All times are GMT -5. The time now is 17:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi