Package edu.wpi.first.wpilibj.simulation
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 Summary
Constructors Constructor Description ADXRS450_GyroSim(ADXRS450_Gyro gyro)
Constructs from an ADXRS450_Gyro object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAngle(double angleDegrees)
Sets the angle in degrees (clockwise positive).void
setRate(double rateDegreesPerSecond)
Sets the angular rate in degrees per second (clockwise positive).
-
-
-
Constructor Detail
-
ADXRS450_GyroSim
public ADXRS450_GyroSim(ADXRS450_Gyro gyro)
Constructs from an ADXRS450_Gyro object.- Parameters:
gyro
- ADXRS450_Gyro to simulate
-
-
Method Detail
-
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.
-
-