Last active
August 29, 2015 14:11
-
-
Save jimmyli97/4e818c4a0fc06b934118 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//RobotC variable that keeps track of # of total motors | |
int kNumbOfTotalMotors = 5; | |
int maxMotorPowers[kNumbOfTotalMotors]; | |
maxMotorPowers[(int) leftMotor] = 100; //(int) leftMotor translates to 1, a valid array index | |
maxMotorPowers[(int) rightMotor] = 50; | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment