Accelerometer¶
- class wpilib.interfaces.Accelerometer[source]¶
Bases: builtins.object
Interface for 3-axis accelerometers
- Accelerometer.getX()[source]¶
Common interface for getting the x axis acceleration
Returns: The acceleration along the x axis in g-forces
- Accelerometer.getY()[source]¶
Common interface for getting the y axis acceleration
Returns: The acceleration along the y axis in g-forces