Package edu.wpi.first.wpilibj.simulation
Class ADXL345Sim
java.lang.Object
edu.wpi.first.wpilibj.simulation.ADXL345Sim
Class to control a simulated ADXL345.
-
Constructor Summary
ConstructorDescriptionADXL345Sim
(ADXL345_I2C device) Constructor.ADXL345Sim
(ADXL345_SPI device) Constructor. -
Method Summary
-
Constructor Details
-
ADXL345Sim
Constructor.- Parameters:
device
- The device to simulate
-
ADXL345Sim
Constructor.- Parameters:
device
- The device to simulate
-
-
Method Details
-
setX
Sets the X acceleration.- Parameters:
accel
- The X acceleration.
-
setY
Sets the Y acceleration.- Parameters:
accel
- The Y acceleration.
-
setZ
Sets the Z acceleration.- Parameters:
accel
- The Z acceleration.
-