108 double m_gsPerLSB = 0.001;
ADXL362 SPI Accelerometer.
Definition: ADXL362.h:20
ADXL362(SPI::Port port, Range range=kRange_2G)
Constructor.
~ADXL362() override=default
void SetRange(Range range)
Set the measuring range of the accelerometer.
Range
Definition: ADXL362.h:22
@ kRange_8G
Definition: ADXL362.h:22
@ kRange_2G
Definition: ADXL362.h:22
@ kRange_4G
Definition: ADXL362.h:22
virtual AllAxes GetAccelerations()
Get the acceleration of all axes in Gs.
double GetX()
Returns the acceleration along the X axis in g-forces.
virtual double GetAcceleration(Axes axis)
Get the acceleration of one axis in Gs.
ADXL362 & operator=(ADXL362 &&)=default
Axes
Definition: ADXL362.h:24
@ kAxis_X
Definition: ADXL362.h:24
@ kAxis_Y
Definition: ADXL362.h:24
@ kAxis_Z
Definition: ADXL362.h:24
double GetY()
Returns the acceleration along the Y axis in g-forces.
ADXL362(ADXL362 &&)=default
SPI::Port GetSpiPort() const
double GetZ()
Returns the acceleration along the Z axis in g-forces.
void InitSendable(nt::NTSendableBuilder &builder) override
Initializes this Sendable object.
ADXL362(Range range=kRange_2G)
Constructor.
SPI bus interface class.
Definition: SPI.h:26
A move-only C++ wrapper around a HAL simulator device handle.
Definition: SimDevice.h:644
C++ wrapper around a HAL simulator double value handle.
Definition: SimDevice.h:535
C++ wrapper around a HAL simulator enum value handle.
Definition: SimDevice.h:576
Definition: NTSendableBuilder.h:18
Interface for NetworkTable Sendable objects.
Definition: NTSendable.h:16
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:19
Definition: AprilTagPoseEstimator.h:15
double YAxis
Definition: ADXL362.h:27
double XAxis
Definition: ADXL362.h:26
double ZAxis
Definition: ADXL362.h:28