86 double m_gsPerLSB = 0.001;
ADXL362 SPI Accelerometer.
Definition: ADXL362.h:23
ADXL362(SPI::Port port, Range range=kRange_2G)
Constructor.
~ADXL362() override=default
virtual AllAxes GetAccelerations()
Get the acceleration of all axes in Gs.
virtual double GetAcceleration(Axes axis)
Get the acceleration of one axis in Gs.
ADXL362 & operator=(ADXL362 &&)=default
void SetRange(Range range) final
Common interface for setting the measuring range of an accelerometer.
Axes
Definition: ADXL362.h:25
@ kAxis_X
Definition: ADXL362.h:25
@ kAxis_Y
Definition: ADXL362.h:25
@ kAxis_Z
Definition: ADXL362.h:25
double GetY() override
Common interface for getting the y axis acceleration.
double GetZ() override
Common interface for getting the z axis acceleration.
ADXL362(ADXL362 &&)=default
double GetX() override
Common interface for getting the x axis acceleration.
SPI::Port GetSpiPort() const
void InitSendable(nt::NTSendableBuilder &builder) override
Initializes this Sendable object.
ADXL362(Range range=kRange_2G)
Constructor.
Interface for 3-axis accelerometers.
Definition: Accelerometer.h:12
Range
Definition: Accelerometer.h:20
@ kRange_2G
Definition: Accelerometer.h:20
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:28
double XAxis
Definition: ADXL362.h:27
double ZAxis
Definition: ADXL362.h:29