View Single Post
  #14   Spotlight this post!  
Unread 18-01-2012, 20:36
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Simple Tankdrive with 4 CIMs

Quote:
Originally Posted by touchdownjesus4 View Post
Ok so now that I think that the code I wrote will work, I want to put it in the command based template. I watched the videos that Brad Miller posted and I know how the template works but am not sure how to set it up to make the tank drive work.
Take a look at the GearsBot Robot sample provided. (New Project -> Samples -> FRC Java -> GearsBot)

Interestingly enough, it's actually the same code from the video.

Just make sure you comment out this line in CommandBase.java:
Code:
Subsystem.registerDefaultCommands();

- offtopic edit -
I see you're from Cinci. Looking forward to competing with you guys at Queen City this year.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote