Package edu.wpi.first.wpilibj.simulation
Class ADIS16470_IMUSim
java.lang.Object
edu.wpi.first.wpilibj.simulation.ADIS16470_IMUSim
public class ADIS16470_IMUSim extends Object
Class to control a simulated ADIS16470 gyroscope.
-
Constructor Summary
Constructors Constructor Description ADIS16470_IMUSim(ADIS16470_IMU gyro)
Constructs from an ADIS16470_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
-
ADIS16470_IMUSim
Constructs from an ADIS16470_IMU object.- Parameters:
gyro
- ADIS16470_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.
-