View Single Post
  #12   Spotlight this post!  
Unread 13-04-2009, 22:56
JasonF JasonF is offline
Registered User
FRC #2848 (The All Sparks)
Team Role: Programmer
 
Join Date: Apr 2009
Rookie Year: 2009
Location: Irving Texas
Posts: 24
JasonF is an unknown quantity at this point
Re: EASY traction control?

Quote:
Originally Posted by Brdn666 View Post
You could program so "electric gears". Just have 2 or 3 settings that subtract from your joystick output. To get the buttons to switch without holding the button down, get three selects (programming/comparison). Wire the bottom's select into the false of the one above. Repeat, wiring the very top to the bottom (A feedback node should appear). Put the buttons select into the select, and then put whatever values you want in the true. The output of the top goes into your add/subtract and the joystick goes in the top. Put in a catch for when you add/subtract too much and go backwards when you aren't moving at all.
This is going to be the easiest thing to program for the beginner.
We did a similar thing with 2 multipliers to the Axis Value depending on the button.

In our set up we used only the Y-Axis for the Value. We had a Trigger and a Pinkie Button, so the Trigger was a (y*.65) Value. The driver with the trigger depressed could use the slower speed in addition to the fact he would creep up to the full value on the axis. The Pinkie finger would be another value... depending on what you needed.

It isn't an elegant solution to the problem, but it worked for us. We didn't use a standard Tank drive system so Spinning Out was not as much of an issue for us.

And if your driver complains about using this method go tell him to program what he wants

I attached our code... and you get to witness my Worst photoshop job ever...
Attached Thumbnails
Click image for larger version

Name:	control.jpg
Views:	44
Size:	74.8 KB
ID:	7824  

Last edited by JasonF : 13-04-2009 at 23:01.
Reply With Quote