Log in

View Full Version : 6 Wheel Tank Drive


MoMo
08-05-2013, 17:25
Is it possible to program 6 sims on 6 different jags with tank drive? i tired programming it with the frc c++ simple template but it wont let me add 6 jags only 4 any help?

AllenGregoryIV
08-05-2013, 18:21
Is it possible to program 6 sims on 6 different jags with tank drive? i tired programming it with the frc c++ simple template but it wont let me add 6 jags only 4 any help?

The easiest thing to do is just mirror the output of the 4 you can control to the two that you can't add to robotdrive. Set the third left side jag to the value of the 1st one and do the same for the right side. Make sure you do this at the bottom of the periodic loop so it gets called every time.

You could also make your own class that inherits from robotdrive but accepts 6 speed controllers in it's constructor and handles them properly.

MathMaven
08-05-2013, 19:00
Alternatively, you can just brute-force your way through and code each Jaguar manually. It's ugly, but gets the job done.

Alan Anderson
08-05-2013, 23:05
Or you could use Y-cables on two of the PWM outputs to control two speed controllers from each.

MoMo
09-05-2013, 15:26
I have got it, we just added 6 different jags in the program and throw out the robotdrive, thank you

Toa Circuit
09-05-2013, 15:29
You can and should use the PWM Y-Cables, as mentioned, to provide signal to two jags with one PWM output off the Digital Sidecar.