WPILibC++ 2023.4.3-108-ge5452e3
|
Built-in accelerometer. More...
#include <frc/BuiltInAccelerometer.h>
Public Member Functions | |
BuiltInAccelerometer (Range range=kRange_8G) | |
Constructor. More... | |
BuiltInAccelerometer (BuiltInAccelerometer &&)=default | |
BuiltInAccelerometer & | operator= (BuiltInAccelerometer &&)=default |
void | SetRange (Range range) final |
Set the measuring range of the accelerometer. More... | |
double | GetX () override |
double | GetY () override |
double | GetZ () override |
void | InitSendable (wpi::SendableBuilder &builder) override |
Initializes this Sendable object. More... | |
Public Member Functions inherited from frc::Accelerometer | |
Accelerometer ()=default | |
virtual | ~Accelerometer ()=default |
Accelerometer (Accelerometer &&)=default | |
Accelerometer & | operator= (Accelerometer &&)=default |
virtual void | SetRange (Range range)=0 |
Common interface for setting the measuring range of an accelerometer. More... | |
virtual double | GetX ()=0 |
Common interface for getting the x axis acceleration. More... | |
virtual double | GetY ()=0 |
Common interface for getting the y axis acceleration. More... | |
virtual double | GetZ ()=0 |
Common interface for getting the z axis acceleration. More... | |
Public Member Functions inherited from wpi::Sendable | |
virtual | ~Sendable ()=default |
virtual void | InitSendable (SendableBuilder &builder)=0 |
Initializes this Sendable object. More... | |
Public Member Functions inherited from wpi::SendableHelper< BuiltInAccelerometer > | |
SendableHelper (const SendableHelper &rhs)=default | |
SendableHelper (SendableHelper &&rhs) | |
SendableHelper & | operator= (const SendableHelper &rhs)=default |
SendableHelper & | operator= (SendableHelper &&rhs) |
Additional Inherited Members | |
Public Types inherited from frc::Accelerometer | |
enum | Range { kRange_2G = 0 , kRange_4G = 1 , kRange_8G = 2 , kRange_16G = 3 } |
Protected Member Functions inherited from wpi::SendableHelper< BuiltInAccelerometer > | |
SendableHelper ()=default | |
~SendableHelper () | |
Built-in accelerometer.
This class allows access to the roboRIO's internal accelerometer.
Constructor.
range | The range the accelerometer will measure |
|
default |
|
overridevirtual |
Implements frc::Accelerometer.
|
overridevirtual |
Implements frc::Accelerometer.
|
overridevirtual |
Implements frc::Accelerometer.
|
overridevirtual |
|
default |
|
finalvirtual |
Set the measuring range of the accelerometer.
range | The maximum acceleration, positive or negative, that the accelerometer will measure. Not all accelerometers support all ranges. |
Implements frc::Accelerometer.