Class OnboardIMUSim
java.lang.Object
org.wpilib.simulation.OnboardIMUSim
Class to control a simulated onboard IMU.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetAccelX(double accelMpss) Change the x-accel rate.static voidsetAccelY(double accelMpss) Change the y-accel rate.static voidsetAccelZ(double accelMpss) Change the z-accel rate.static voidsetAngleX(double angleRad) Change the x-angle.static voidsetAngleY(double angleRad) Change the y-angle.static voidsetAngleZ(double angleRad) Change the z-angle.static voidsetGyroRateX(double rateRadPerSec) Change the x-gyro rate.static voidsetGyroRateY(double rateRadPerSec) Change the y-gyro rate.static voidsetGyroRateZ(double rateRadPerSec) Change the z-gyro rate.static voidsetYaw(double angleRad) Change the yaw.
-
Method Details
-
setAngleX
public static void setAngleX(double angleRad) Change the x-angle.- Parameters:
angleRad- the new angle
-
setAngleY
public static void setAngleY(double angleRad) Change the y-angle.- Parameters:
angleRad- the new angle
-
setAngleZ
public static void setAngleZ(double angleRad) Change the z-angle.- Parameters:
angleRad- the new angle
-
setGyroRateX
public static void setGyroRateX(double rateRadPerSec) Change the x-gyro rate.- Parameters:
rateRadPerSec- the new rate
-
setGyroRateY
public static void setGyroRateY(double rateRadPerSec) Change the y-gyro rate.- Parameters:
rateRadPerSec- the new rate
-
setGyroRateZ
public static void setGyroRateZ(double rateRadPerSec) Change the z-gyro rate.- Parameters:
rateRadPerSec- the new rate
-
setAccelX
public static void setAccelX(double accelMpss) Change the x-accel rate.- Parameters:
accelMpss- the new acceleration
-
setAccelY
public static void setAccelY(double accelMpss) Change the y-accel rate.- Parameters:
accelMpss- the new acceleration
-
setAccelZ
public static void setAccelZ(double accelMpss) Change the z-accel rate.- Parameters:
accelMpss- the new acceleration
-
setYaw
public static void setYaw(double angleRad) Change the yaw.- Parameters:
angleRad- the new yaw angle
-