WPILibC++ 2024.3.2
frc::sim::ADXL345Sim Class Reference

Class to control a simulated ADXL345. More...

#include <frc/simulation/ADXL345Sim.h>

Public Member Functions

 ADXL345Sim (const ADXL345_I2C &accel)
 Constructs from a ADXL345_I2C object. More...
 
 ADXL345Sim (const ADXL345_SPI &accel)
 Constructs from a ADXL345_SPI object. More...
 
void SetX (double accel)
 Sets the X acceleration. More...
 
void SetY (double accel)
 Sets the Y acceleration. More...
 
void SetZ (double accel)
 Sets the Z acceleration. More...
 

Detailed Description

Class to control a simulated ADXL345.

Constructor & Destructor Documentation

◆ ADXL345Sim() [1/2]

frc::sim::ADXL345Sim::ADXL345Sim ( const ADXL345_I2C accel)
explicit

Constructs from a ADXL345_I2C object.

Parameters
accelADXL345 accel to simulate

◆ ADXL345Sim() [2/2]

frc::sim::ADXL345Sim::ADXL345Sim ( const ADXL345_SPI accel)
explicit

Constructs from a ADXL345_SPI object.

Parameters
accelADXL345 accel to simulate

Member Function Documentation

◆ SetX()

void frc::sim::ADXL345Sim::SetX ( double  accel)

Sets the X acceleration.

Parameters
accelThe X acceleration.

◆ SetY()

void frc::sim::ADXL345Sim::SetY ( double  accel)

Sets the Y acceleration.

Parameters
accelThe Y acceleration.

◆ SetZ()

void frc::sim::ADXL345Sim::SetZ ( double  accel)

Sets the Z acceleration.

Parameters
accelThe Z acceleration.

The documentation for this class was generated from the following file: