View Single Post
  #2   Spotlight this post!  
Unread 02-02-2011, 12:55
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: Make motors run the same speed using encoders

Im sorry but i don't think i understand your question well enough. From what i got it sounds like your having problems with making the robot go straight even if the joystick is tilted in an off direction. If this is your problem then you can make a case structure hook up to the button your going to use to initiate this coding (im assuming a button) and in the true wire the x axis input on arcade drive (yet again more assumtions) to a 0 constant in the case structure and for false have the x axis output go through the case structure to the x axis input. It MUST go through the case structure.
in boolean algebra it would look something like this:
a = button;
Xinput = axis input;
Xoutput = plugged into the arcade drive;
Name:  equation.bmp
Views: 273
Size:  58.7 KB
__________________

jRIO 2013 Project
Reply With Quote