Class GravitySensor
- java.lang.Object
-
- com.thegongoliers.input.accelerometer.GravitySensor
-
- All Implemented Interfaces:
edu.wpi.first.wpilibj.interfaces.Accelerometer
public class GravitySensor extends java.lang.Object implements edu.wpi.first.wpilibj.interfaces.Accelerometer
-
-
Constructor Summary
Constructors Constructor Description GravitySensor(edu.wpi.first.wpilibj.interfaces.Accelerometer accel)
Attempts to remove the linear acceleration from the accelerometer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getX()
double
getY()
double
getZ()
void
setRange(edu.wpi.first.wpilibj.interfaces.Accelerometer.Range range)
-
-
-
Method Detail
-
setRange
public void setRange(edu.wpi.first.wpilibj.interfaces.Accelerometer.Range range)
- Specified by:
setRange
in interfaceedu.wpi.first.wpilibj.interfaces.Accelerometer
-
getX
public double getX()
- Specified by:
getX
in interfaceedu.wpi.first.wpilibj.interfaces.Accelerometer
-
getY
public double getY()
- Specified by:
getY
in interfaceedu.wpi.first.wpilibj.interfaces.Accelerometer
-
getZ
public double getZ()
- Specified by:
getZ
in interfaceedu.wpi.first.wpilibj.interfaces.Accelerometer
-
-