forward23¶
-
void
forward23(float percent, int inch)¶ Moves forward in the direction of motors 2 & 3 for the given inch distance.
- Parameters
percent: the power for motors 2 & 3. A negative value will move backwards.inch: the distance to move. Must be positive.
Examples¶
1 | forward23(25.0, 4.0);
|
Moves in the forward 4 inches in the direction of motors 2 & 3.
1 | forward23(-15.0, 4.0);
|
Moves in the backwards 4 inches, opposite of the direction of motors 2 & 3.
Function Variables¶
Type |
Name |
Description |
|---|---|---|
|
|
The start time of the function, used for timeout if the motors don’t move. |