81 hal::SimDevice m_simDevice;
82 hal::SimEnum m_simRange;
83 hal::SimDouble m_simX;
84 hal::SimDouble m_simY;
85 hal::SimDouble m_simZ;
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:27
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: AprilTagFieldLayout.h:22
double YAxis
Definition: ADXL362.h:28
double XAxis
Definition: ADXL362.h:27
double ZAxis
Definition: ADXL362.h:29