|
Re: Using two Jaguars with one encoder
Our team is using a PID loop on the cRIO and C++, so we made a class for the output of the PIDController that just contains two Jaguars and sets them both to the same power. Our class just implements the PIDOutput and the SpeedController classes.
Splitting the encoder's gnd and signal pins to both jaguars may work as well, although I'd be worried about the loops running at slightly different rates or something and then somehow getting off and ruining the motors and/or shafts. If you decide to do this, make sure you don't connect the power for the encoder to each jaguar, just connect it to one. The gnd and the two signals should go to both though.
|