ROBOTC.net forums
http://www.robotc.net/forums/

Robot C programming
http://www.robotc.net/forums/viewtopic.php?f=55&t=19542
Page 1 of 1

Author:  popolok11 [ Sun Dec 18, 2016 2:28 pm ]
Post subject:  Robot C programming

In my program for the starkicker robot, I have to keep on repeating this section of code for movement during autonomous

Code:
motor[rearRightMotor] = 127;
     motor[frontRightMotor] = 127;
     motor[rearLeftMotor] = -127;
     motor[frontLeftMotor] = -127;


I use this to make my robot move forward an whatnot.
Is there anyway that I can replace the code above with something like this:

Code:
rightMotors = 127;
         leftMotors = 127;


Thanks

Author:  popolok11 [ Sun Dec 18, 2016 2:29 pm ]
Post subject:  Re: Robot C programming

Also, sort of off topic, what are the right and left slide motors supposed do in the starkicker robot

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/