Motors
Motors are stored in the Devices class.
There are 8 different motors:
Devices.motor0Devices.motor1Devices.motor2Devices.motor3Devices.motor4Devices.motor5Devices.motor6Devices.motor7
caution
To use motors 4-7 you must connect a REV Expansion Hub.
Usage
setPower(double power)- Sets the power of the motor. Accepts values between -100 and 100.setSpeed(double speed)- Sets the speed of the motor. Accepts values between -100 and 100.This uses a PID loop to set a constant robot speed.