View Single Post
  #2   Spotlight this post!  
Unread 08-05-2013, 18:21
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,549
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: 6 Wheel Tank Drive

Quote:
Originally Posted by MoMo View Post
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.
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt
Reply With Quote