Interface for 3-axis accelerometers.
More...
#include <frc/interfaces/Accelerometer.h>
Interface for 3-axis accelerometers.
- Deprecated:
- This interface is being removed with no replacement.
◆ Range
Accelerometer range.
Enumerator |
---|
kRange_2G | 2 Gs max.
|
kRange_4G | 4 Gs max.
|
kRange_8G | 8 Gs max.
|
kRange_16G | 16 Gs max.
|
◆ Accelerometer() [1/2]
frc::Accelerometer::Accelerometer |
( |
| ) |
|
|
default |
◆ ~Accelerometer()
virtual frc::Accelerometer::~Accelerometer |
( |
| ) |
|
|
virtualdefault |
◆ Accelerometer() [2/2]
◆ GetX()
virtual double frc::Accelerometer::GetX |
( |
| ) |
|
|
pure virtual |
Common interface for getting the x axis acceleration.
- Returns
- The acceleration along the x axis in g-forces
◆ GetY()
virtual double frc::Accelerometer::GetY |
( |
| ) |
|
|
pure virtual |
Common interface for getting the y axis acceleration.
- Returns
- The acceleration along the y axis in g-forces
◆ GetZ()
virtual double frc::Accelerometer::GetZ |
( |
| ) |
|
|
pure virtual |
Common interface for getting the z axis acceleration.
- Returns
- The acceleration along the z axis in g-forces
◆ operator=()
◆ SetRange()
virtual void frc::Accelerometer::SetRange |
( |
Range |
range | ) |
|
|
pure virtual |
Common interface for setting the measuring range of an accelerometer.
- Parameters
-
range | The maximum acceleration, positive or negative, that the accelerometer will measure. Not all accelerometers support all ranges. |
The documentation for this class was generated from the following file: