📙
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
  • How to get gyro readings?
  • How to get encoder readings?
  • Get actual robot coordinates in global space:

Was this helpful?

Utilizing Sensor Input

How to get gyro readings?

  • Robot.getHeading() <- Radians

  • Robot.getHeadingDegrees() <- Degrees

Returns the sensor input of the gyro on the robot. Requires no parameters.

How to get encoder readings?

  • Robot.getLeftOdo

  • Robot.getRightOdo

  • Robot.getStrafeOdo

Returns the sensor input of the left, right and strafe dead wheels odometer wheel. Requires no parameters.

Get actual robot coordinates in global space:

Robot.getPose()

Returns the actual robot coordinates.

PreviousUtilizing Time in your codeNextOther Useful Classes

Last updated 4 years ago

Was this helpful?