forward31

void forward31(float percent, float inch)

Moves forward in the direction of motors 3 & 1 for the given inch distance.

Parameters
  • percent: the power for motors 3 & 1. A negative value will move backwards.

  • inch: the distance to move. Must be positive.

Examples

1
forward31(25.0, 4.0);

Moves in the forward 4 inches in the direction of motors 3 & 1.


1
forward31(-15.0, 4.0);

Moves in the backwards 4 inches, opposite of the direction of motors 3 & 1.

Function Variables

Type

Name

Description

float

start

The start time of the function, used for timeout if the motors don’t move.