Class FakeGyro

  • All Implemented Interfaces:
    edu.wpi.first.wpilibj.interfaces.Gyro, edu.wpi.first.wpilibj.PIDSource, edu.wpi.first.wpilibj.Sendable, AutoCloseable

    public class FakeGyro
    extends edu.wpi.first.wpilibj.GyroBase
    Mock gyro with user-controllable angle. Useful for displaying an angle measure on Shuffleboard. Displays whatever angle (in degrees) is passed into setAngle(double).
    • Constructor Detail

      • FakeGyro

        public FakeGyro()
    • Method Detail

      • calibrate

        public void calibrate()
      • reset

        public void reset()
      • setAngle

        public void setAngle​(double angle)
      • getAngle

        public double getAngle()
      • getRate

        public double getRate()
      • close

        public void close()