View Single Post
  #23   Spotlight this post!  
Unread 21-03-2011, 15:33
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Swerve Drivetrain.

Quote:
Originally Posted by buchanan View Post
...While it's unlikely anyone would build a tank/skid steer drivetrain without a software/control system capable of exploiting all its physical capabilities...
I disagree.

Including the ride height automation, I have almost as much code in the drivetrain of our robot as I do in the elevator.

Ignoring the ride height automation, I still have a lot of code. The driver inputs come in, are run through filters if certain conditions are met (to provide better response and less oversteer), can be flipped if the driver requests invert, and are fed through a special algorithm that handles turning and arcing better (to fix some issues we found where the driver requests a (1,0) but really means (1,coast). We then run the commands to the closed-loop speed control (which in itself has automation of coasting to stops and holding position), and then run the shift scheduler.

The simple way of programming a skid steer would be to set the motors to the joysticks.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack