Victor, thanks for your comment.
Based on your comment I guess I should have repeated my question at the
end of the post. Also, I am using Pololu motors #2275 and Pololu motor
controllers #1451. However, it is not electronics I need help with it is
More specifically, what I am looking for is help with is how to
translate the RobotC code, which is used with Vex robots, and
conceptually does exactly what I need, into to Ardunio C or C++ code. I
simply have not been able to fully decipher the Vex RobotC code
referenced in my post in order to write an Arduino sketch that will
cause my bot to travel in a straight line.
I have done extensive research on PID and understand how it works. Also,
I have looked at numerous ArduinoC, and c++ code for implementing PID,
to include the Arduino PID library. Unfortunately, it appears most
Arduino C or C++ PID code is overly complex and provides far more
precision than is needed to have my bot travel in a straight line.
Any suggestions on how to translate the Vex RobotC code to an Arduino
sketch that implements the master motor slave motor concept would be
Thank you for any advice you may provide.