drive To
Deprecated
driveTo is slower than driveTo2
Replace with
Encoders.driveTo2(direction, inches)
Content copied to clipboard
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.