public abstract class GyroSensor extends java.lang.Object implements HardwareDevice
Constructor and Description |
---|
GyroSensor() |
Modifier and Type | Method and Description |
---|---|
abstract void |
calibrate()
Calibrate the gyro.
|
abstract int |
getHeading()
Return the integrated Z axis as a cartesian heading.
|
abstract double |
getRotation()
Return the rotation of this sensor
|
abstract boolean |
isCalibrating()
Is the gyro performing a calibration operation?
|
void |
notSupported() |
abstract int |
rawX()
Return the gyro's raw X value.
|
abstract int |
rawY()
Return the gyro's raw Y value.
|
abstract int |
rawZ()
Return the gyro's raw Z value.
|
abstract void |
resetZAxisIntegrator()
Set the integrated Z axis to zero.
|
abstract java.lang.String |
status()
Status of this sensor, in string form
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getConnectionInfo, getDeviceName, getVersion
public abstract void calibrate()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurepublic abstract boolean isCalibrating()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurepublic abstract int getHeading()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurepublic abstract double getRotation()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurepublic abstract int rawX()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurepublic abstract int rawY()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurepublic abstract int rawZ()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurepublic abstract void resetZAxisIntegrator()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurepublic abstract java.lang.String status()
public java.lang.String toString()
toString
in class java.lang.Object
public void notSupported()