Package edu.wpi.first.wpilibj.simulation
Class ADIS16448_IMUSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.ADIS16448_IMUSim
public class ADIS16448_IMUSim extends Object
Class to control a simulated ADIS16448 gyroscope.
-
Constructor Summary
Constructors Constructor Description ADIS16448_IMUSim(ADIS16448_IMU gyro)
Constructs from an ADIS16448_IMU object. -
Method Summary
Modifier and Type Method Description void
setAccelX(double accelMetersPerSecondSquared)
Sets the X axis acceleration in meters per second squared.void
setAccelY(double accelMetersPerSecondSquared)
Sets the Y axis acceleration in meters per second squared.void
setAccelZ(double accelMetersPerSecondSquared)
Sets the Z axis acceleration in meters per second squared.void
setGyroAngleX(double angleDegrees)
Sets the X axis angle in degrees (CCW positive).void
setGyroAngleY(double angleDegrees)
Sets the Y axis angle in degrees (CCW positive).void
setGyroAngleZ(double angleDegrees)
Sets the Z axis angle in degrees (CCW positive).void
setGyroRateX(double angularRateDegreesPerSecond)
Sets the X axis angle in degrees per second (CCW positive).void
setGyroRateY(double angularRateDegreesPerSecond)
Sets the Y axis angle in degrees per second (CCW positive).void
setGyroRateZ(double angularRateDegreesPerSecond)
Sets the Z axis angle in degrees per second (CCW positive).
-
Constructor Details
-
ADIS16448_IMUSim
Constructs from an ADIS16448_IMU object.- Parameters:
gyro
- ADIS16448_IMU to simulate
-
-
Method Details
-
setGyroAngleX
Sets the X axis angle in degrees (CCW positive).- Parameters:
angleDegrees
- The angle.
-
setGyroAngleY
Sets the Y axis angle in degrees (CCW positive).- Parameters:
angleDegrees
- The angle.
-
setGyroAngleZ
Sets the Z axis angle in degrees (CCW positive).- Parameters:
angleDegrees
- The angle.
-
setGyroRateX
Sets the X axis angle in degrees per second (CCW positive).- Parameters:
angularRateDegreesPerSecond
- The angular rate.
-
setGyroRateY
Sets the Y axis angle in degrees per second (CCW positive).- Parameters:
angularRateDegreesPerSecond
- The angular rate.
-
setGyroRateZ
Sets the Z axis angle in degrees per second (CCW positive).- Parameters:
angularRateDegreesPerSecond
- The angular rate.
-
setAccelX
Sets the X axis acceleration in meters per second squared.- Parameters:
accelMetersPerSecondSquared
- The acceleration.
-
setAccelY
Sets the Y axis acceleration in meters per second squared.- Parameters:
accelMetersPerSecondSquared
- The acceleration.
-
setAccelZ
Sets the Z axis acceleration in meters per second squared.- Parameters:
accelMetersPerSecondSquared
- The acceleration.
-