public interface CompassSensor extends HardwareDevice
Modifier and Type | Interface and Description |
---|---|
static class |
CompassSensor.CompassMode |
HardwareDevice.Manufacturer
Modifier and Type | Method and Description |
---|---|
boolean |
calibrationFailed()
Check to see whether calibration was successful.
|
double |
getDirection()
Get the current direction, in degrees, in the range [0, 360).
|
void |
setMode(CompassSensor.CompassMode mode)
Change to calibration or measurement mode
|
java.lang.String |
status()
Status of this sensor, in string form
|
close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode
double getDirection()
java.lang.String status()
void setMode(CompassSensor.CompassMode mode)
boolean calibrationFailed()