Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Using encoder with jaguar (http://www.chiefdelphi.com/forums/showthread.php?t=89678)

demosthenes2k8 20-01-2011 19:14

Using encoder with jaguar
 
My team saw in a PDF that it was possible to use an encoder connected to a jaguar to regulate the speed. Unfortunately, we haven't been able to find any information about actually DOING this in C++. Is there any example code that shows how to do this?

basicxman 20-01-2011 19:45

Re: Using encoder with jaguar
 
Quote:

Originally Posted by demosthenes2k8 (Post 1004538)
Is there any example code that shows how to do this?

If there was example code for everything, FIRST wouldn't exist.

Learn how to use the encoder, learn how to use the Jaguars, research on closed-loop controllers. Do your homework! :D

Alexander Meyer 20-01-2011 22:04

Re: Using encoder with jaguar
 
It's possible, and example code exists (see the CANJaguar project on FIRST Forge) but you'll need to use CAN instead of PWM control for your Jags, which is a whole 'nother can of worms.

demosthenes2k8 20-01-2011 22:13

Re: Using encoder with jaguar
 
Oh, we're already using CAN, so that's not a problem.
We think we ended up finding out what we needed, we just have to initialize it with kSpeed, set the speed reference, and convert joystick values into RPM.

Alexander Meyer 20-01-2011 22:47

Re: Using encoder with jaguar
 
Don't forget to set your PID values..

Kevin Sevcik 20-01-2011 23:55

Re: Using encoder with jaguar
 
Sorry, using velocity or another other closed loop control on the Jaguars has been deemed illegal. See here: http://www.chiefdelphi.com/forums/sh...43#post1004743

demosthenes2k8 21-01-2011 11:34

Re: Using encoder with jaguar
 
Ouch. Welll...I guess that settles it, then.

Zme 22-01-2011 11:44

Re: Using encoder with jaguar
 
it is allowed from what i've seen, check team update 4
http://usfirst.org/uploadedFiles/Rob..._Update_04.pdf

demosthenes2k8 22-01-2011 11:45

Re: Using encoder with jaguar
 
Yeah, we found that. Thank you!


All times are GMT -5. The time now is 13:57.

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