Package org.team1540.rooster.util
Class FakeGyro
- java.lang.Object
-
- edu.wpi.first.wpilibj.GyroBase
-
- org.team1540.rooster.util.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.GyroBaseMock gyro with user-controllable angle. Useful for displaying an angle measure on Shuffleboard. Displays whatever angle (in degrees) is passed intosetAngle(double).
-
-
Constructor Summary
Constructors Constructor Description FakeGyro()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalibrate()voidclose()doublegetAngle()doublegetRate()voidreset()voidsetAngle(double angle)-
Methods inherited from class edu.wpi.first.wpilibj.GyroBase
getPIDSourceType, initSendable, pidGet, setPIDSourceType
-
-