Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   6 Wheel Tank Drive (http://www.chiefdelphi.com/forums/showthread.php?t=116767)

MoMo 08-05-2013 17:25

6 Wheel Tank Drive
 
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

Re: 6 Wheel Tank Drive
 
Quote:

Originally Posted by MoMo (Post 1273416)
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

Re: 6 Wheel Tank Drive
 
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

Re: 6 Wheel Tank Drive
 
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

Re: 6 Wheel Tank Drive
 
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

Re: 6 Wheel Tank Drive
 
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.


All times are GMT -5. The time now is 12:51.

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