VEX2 Motors and Servos Overview
| Line 9: | Line 9: | ||
{| class="wikiText" | {| class="wikiText" | ||
|- | |- | ||
| − | |''For ROBOTC | + | |''For ROBOTC VEX CORTEX Motor and Servo ''functions'', check out [[VEX2:_Functions_-_Motors|Motor and Servo Functions]]!'' |
|- | |- | ||
|} | |} | ||
Revision as of 13:51, 2 March 2012
| For ROBOTC VEX CORTEX Motor and Servo functions, check out Motor and Servo Functions! |
|
Motor Speed / Power Control
| Motors are controlled by specifying a power level to apply to the motor. Power levels range from -127 to +127. Negative values indicate reverse direction and positive values indicate forward direction. To move motor ‘1’ forward at 50% of full power, you would use the following statement: | |
| |
| motor[] is the ROBOTC array variable that controls the motor power and port1 is an enum variable for motor 1.
|