Class OnboardIMUSim

java.lang.Object
org.wpilib.simulation.OnboardIMUSim

public final class OnboardIMUSim extends Object
Class to control a simulated onboard IMU.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    setAccelX(double accelMpss)
    Change the x-accel rate.
    static void
    setAccelY(double accelMpss)
    Change the y-accel rate.
    static void
    setAccelZ(double accelMpss)
    Change the z-accel rate.
    static void
    setAngleX(double angleRad)
    Change the x-angle.
    static void
    setAngleY(double angleRad)
    Change the y-angle.
    static void
    setAngleZ(double angleRad)
    Change the z-angle.
    static void
    setGyroRateX(double rateRadPerSec)
    Change the x-gyro rate.
    static void
    setGyroRateY(double rateRadPerSec)
    Change the y-gyro rate.
    static void
    setGyroRateZ(double rateRadPerSec)
    Change the z-gyro rate.
    static void
    setYaw(double angleRad)
    Change the yaw.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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