Class to control a simulated ADXL345.
More...
#include <frc/simulation/ADXL345Sim.h>
Class to control a simulated ADXL345.
◆ ADXL345Sim() [1/2]
frc::sim::ADXL345Sim::ADXL345Sim |
( |
const ADXL345_I2C & |
accel | ) |
|
|
explicit |
Constructs from a ADXL345_I2C object.
- Parameters
-
accel | ADXL345 accel to simulate |
◆ ADXL345Sim() [2/2]
frc::sim::ADXL345Sim::ADXL345Sim |
( |
const ADXL345_SPI & |
accel | ) |
|
|
explicit |
Constructs from a ADXL345_SPI object.
- Parameters
-
accel | ADXL345 accel to simulate |
◆ SetX()
void frc::sim::ADXL345Sim::SetX |
( |
double |
accel | ) |
|
Sets the X acceleration.
- Parameters
-
◆ SetY()
void frc::sim::ADXL345Sim::SetY |
( |
double |
accel | ) |
|
Sets the Y acceleration.
- Parameters
-
◆ SetZ()
void frc::sim::ADXL345Sim::SetZ |
( |
double |
accel | ) |
|
Sets the Z acceleration.
- Parameters
-
The documentation for this class was generated from the following file: