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