Class ADXRS450_GyroSim

java.lang.Object
edu.wpi.first.wpilibj.simulation.ADXRS450_GyroSim

public class ADXRS450_GyroSim extends Object
Class to control a simulated ADXRS450 gyroscope.
  • Constructor Details

    • ADXRS450_GyroSim

      Constructs from an ADXRS450_Gyro object.
      Parameters:
      gyro - ADXRS450_Gyro to simulate
  • Method Details

    • setAngle

      public void setAngle(double angleDegrees)
      Sets the angle in degrees (clockwise positive).
      Parameters:
      angleDegrees - The angle.
    • setRate

      public void setRate(double rateDegreesPerSecond)
      Sets the angular rate in degrees per second (clockwise positive).
      Parameters:
      rateDegreesPerSecond - The angular rate.