WPILibC++ 2023.4.3-108-ge5452e3
|
#include "hal/Types.h"
Go to the source code of this file.
Enumerations | |
enum | HAL_AccelerometerRange : int32_t { HAL_AccelerometerRange_k2G = 0 , HAL_AccelerometerRange_k4G = 1 , HAL_AccelerometerRange_k8G = 2 } |
The acceptable accelerometer ranges. More... | |
Functions | |
void | HAL_SetAccelerometerActive (HAL_Bool active) |
Sets the accelerometer to active or standby mode. More... | |
void | HAL_SetAccelerometerRange (HAL_AccelerometerRange range) |
Sets the range of values that can be measured (either 2, 4, or 8 g-forces). More... | |
double | HAL_GetAccelerometerX (void) |
Gets the x-axis acceleration. More... | |
double | HAL_GetAccelerometerY (void) |
Gets the y-axis acceleration. More... | |
double | HAL_GetAccelerometerZ (void) |
Gets the z-axis acceleration. More... | |