Package edu.wpi.first.wpilibj.simulation
Class ADXRS450_GyroSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.ADXRS450_GyroSim
Class to control a simulated ADXRS450 gyroscope.
-
Constructor Summary
ConstructorDescriptionConstructs from an ADXRS450_Gyro object. -
Method Summary
-
Constructor Details
-
ADXRS450_GyroSim
Constructs from an ADXRS450_Gyro object.- Parameters:
gyro
- ADXRS450_Gyro to simulate
-
-
Method Details
-
setAngle
Sets the angle in degrees (clockwise positive).- Parameters:
angleDegrees
- The angle.
-
setRate
Sets the angular rate in degrees per second (clockwise positive).- Parameters:
rateDegreesPerSecond
- The angular rate.
-