setPower()

setPower(x, y, z)

This function can be called inside the OpMode using the syntax below:

Robot.setPower(1.0, 0.0, 0.0);

The example below shows the setPower() method being used to make the robot move forward at 1.0 power.

setPower(UpLeft, BackLeft, UpRight, BackRight)

This function can be called inside the OpMode using the syntax below:

Robot.setPower(1.0, 1.0, 1.0, 1.0);

The example below shows the setPower() method being used to make all 4 wheels of the robot move forward at 1.0 power.

setPowerCentric(x, y, z)

setPowerCentric sets the power to the robot relative to the world space rather than the robot itself.

This function can be called inside the OpMode using the syntax below:

Robot.setPowerCentric(1.0, 0.0, 1.0);

The example below shows the setPowerCentric() method being used to makes the robot move in the x-axis while turning.

Last updated