VEX2 Motors and Servos Overview
From ROBOTC API Guide
(Created page with "== Motor Speed / Power Control == {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cell...") |
|||
| (6 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| + | <yambe:breadcrumb self="Motors and Servos Overview">VEX2|CORTEX</yambe:breadcrumb> | ||
| + | <br /> | ||
| + | |||
| + | {| | ||
| + | |- | ||
| + | |''For ROBOTC VEX CORTEX Motor and Servo ''functions'', check out [[VEX2_Functions_Motors_and_Servos|Motors and Servos]]!'' | ||
| + | |- | ||
| + | |} | ||
| + | <br /> | ||
| + | |||
| + | {{tl|1|}} | ||
| + | <br /> | ||
| + | |||
== Motor Speed / Power Control == | == Motor Speed / Power Control == | ||
{| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0" | {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
Latest revision as of 09:21, 30 April 2012
CORTEX → Motors and Servos Overview
| For ROBOTC VEX CORTEX Motor and Servo functions, check out Motors and Servos! |
|
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.
|