public interface GyroSensor extends HardwareDevice
HardwareDevice.Manufacturer
Modifier and Type | Method and Description |
---|---|
void |
calibrate()
Calibrate the gyro.
|
int |
getHeading()
Return the integrated Z axis as a cartesian heading.
|
double |
getRotationFraction()
Return the rotation of this sensor expressed as a fraction of the maximum possible reportable rotation
|
boolean |
isCalibrating()
Is the gyro performing a calibration operation?
|
int |
rawX()
Return the gyro's raw X value.
|
int |
rawY()
Return the gyro's raw Y value.
|
int |
rawZ()
Return the gyro's raw Z value.
|
void |
resetZAxisIntegrator()
Set the integrated Z axis to zero.
|
java.lang.String |
status()
Status of this sensor, in string form
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
void calibrate()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featureboolean isCalibrating()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featureint getHeading()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featuredouble getRotationFraction()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featureint rawX()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featureint rawY()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featureint rawZ()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurevoid resetZAxisIntegrator()
java.lang.UnsupportedOperationException
- if unsupported; not all gyro devices support this featurejava.lang.String status()