View Single Post
  #3   Spotlight this post!  
Unread 19-02-2012, 03:42
Stimpy1901 Stimpy1901 is offline
Registered User
AKA: Bobby
FRC #2348 (Cool Geeks)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Honolulu
Posts: 57
Stimpy1901 will become famous soon enough
Re: Using two Jaguars with one encoder

Although we are not driving the same shaft, our shooter design is a two-wheel shooter and we are using CAN and one jaguar's PID to control the speed of both wheels (motors) using the following method:

1) Set up the "speed" jaguar to speed mode and enable it.
2) Plug encoder into the "speed" jaguar.
3) Set up the other jaguar to be in voltage mode.
4) Set other jaguar to be set to the "opposite" (i.e. put a negative sign) of the output voltage of the "speed" jaguar
(-jag.getOutputVoltage()).
5) Complete the PID settings for that jaguar/motor.

Of course, I don't know how well this will work for you since your motors are connected to same shaft and you would have to use only one motor to set PID, but it definitely works for our shooter (still need to fine tune PID if possible--but that's another thread).
__________________
"The person who says it cannot be done should not interrupt the person doing it."
- Chinese Proverb

Last edited by Stimpy1901 : 19-02-2012 at 03:45. Reason: added "opposite"