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 voidsetAccelX(double accelMetersPerSecondSquared)Sets the X axis acceleration in meters per second squared.voidsetAccelY(double accelMetersPerSecondSquared)Sets the Y axis acceleration in meters per second squared.voidsetAccelZ(double accelMetersPerSecondSquared)Sets the Z axis acceleration in meters per second squared.voidsetGyroAngleX(double angleDegrees)Sets the X axis angle in degrees (CCW positive).voidsetGyroAngleY(double angleDegrees)Sets the Y axis angle in degrees (CCW positive).voidsetGyroAngleZ(double angleDegrees)Sets the Z axis angle in degrees (CCW positive).voidsetGyroRateX(double angularRateDegreesPerSecond)Sets the X axis angle in degrees per second (CCW positive).voidsetGyroRateY(double angularRateDegreesPerSecond)Sets the Y axis angle in degrees per second (CCW positive).voidsetGyroRateZ(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.
-