spin To
Deprecated
spinTo is slower than spinTo2
Replace with
Encoders.spinTo2(degrees)
Content copied to clipboard
Spins the robot a certain number of degrees.
Like driveTo, this function will not return until the robot has finished moving. It will also reset all wheel motors' configuration, including rotation and encoders.
Unlike driveTo, degrees can be a negative or positive number. Positive moves the robot counter-clockwise, negative moves the robot clockwise.