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.

Last updated