Class ADXL345Sim

java.lang.Object
edu.wpi.first.wpilibj.simulation.ADXL345Sim

public class ADXL345Sim extends Object
Class to control a simulated ADXL345.
  • Constructor Details

    • ADXL345Sim

      public ADXL345Sim(ADXL345_SPI device)
      Constructor.
      Parameters:
      device - The device to simulate
    • ADXL345Sim

      public ADXL345Sim(ADXL345_I2C device)
      Constructor.
      Parameters:
      device - The device to simulate
  • Method Details

    • setX

      public void setX(double accel)
      Sets the X acceleration.
      Parameters:
      accel - The X acceleration.
    • setY

      public void setY(double accel)
      Sets the Y acceleration.
      Parameters:
      accel - The Y acceleration.
    • setZ

      public void setZ(double accel)
      Sets the Z acceleration.
      Parameters:
      accel - The Z acceleration.