📙
MyBotSDK
  • Introduction
  • Start Moving
    • setPower()
    • goToPoint()
    • setGoToPointPIDCoeff()
  • Debugging
  • Utilizing Time in your code
  • Utilizing Sensor Input
  • Other Useful Classes
  • Using Gradle Scripts
  • Track Width and Aux Width
  • Contact
  • Community
  • Robot.RangeClip
  • No Wifi card?
Powered by GitBook
On this page
  • setPower(x, y, z)
  • setPower(UpLeft, BackLeft, UpRight, BackRight)
  • setPowerCentric(x, y, z)

Was this helpful?

  1. Start Moving

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.

PreviousStart MovingNextgoToPoint()

Last updated 4 years ago

Was this helpful?