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 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
-
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.
-