driveTo

fun driveTo(direction: Encoders.Direction, inches: Double)

Deprecated

driveTo is slower than driveTo2

Replace with

Encoders.driveTo2(direction, inches)

Drives the robot in a given direction a certain amount of inches.

This function will take full control of the robot, and has a few side-effects. All wheel motors will be reset with TriWheels.stopAndResetMotors. Furthermore, this function will not return until the robot has finished moving.

Due to current restrictions, inches cannot be a negative number.