public class HiTechnicNxtCompassSensor
extends I2cControllerPortDeviceImpl
Modifier and Type | Field and Description |
---|---|
static byte |
CALIBRATION |
static byte |
CALIBRATION_FAILURE |
static int |
COMPASS_BUFFER |
static int |
COMPASS_BUFFER_SIZE |
static byte |
DIRECTION_END |
static byte |
DIRECTION_START |
static byte |
HEADING_IN_TWO_DEGREE_INCREMENTS |
static int |
HEADING_WORD_LENGTH |
static I2cAddr |
I2C_ADDRESS |
static double |
INVALID_DIRECTION |
static byte |
MEASUREMENT |
static byte |
MODE_CONTROL_ADDRESS |
static byte |
ONE_DEGREE_HEADING_ADDER |
Constructor and Description |
---|
HiTechnicNxtCompassSensor(I2cController module,
int physicalPort) |
Modifier and Type | Method and Description |
---|---|
boolean |
calibrationFailed() |
void |
close() |
protected void |
controllerNowArmedOrPretending() |
java.lang.String |
getConnectionInfo() |
java.lang.String |
getDeviceName() |
double |
getDirection() |
Manufacturer |
getManufacturer() |
int |
getVersion() |
void |
portIsReady(int port) |
void |
resetDeviceConfigurationForOpMode() |
void |
setMode(CompassMode mode) |
java.lang.String |
status() |
java.lang.String |
toString() |
public static final I2cAddr I2C_ADDRESS
public static final byte MODE_CONTROL_ADDRESS
public static final byte CALIBRATION
public static final byte MEASUREMENT
public static final byte HEADING_IN_TWO_DEGREE_INCREMENTS
public static final byte ONE_DEGREE_HEADING_ADDER
public static final byte CALIBRATION_FAILURE
public static final byte DIRECTION_START
public static final byte DIRECTION_END
public static final double INVALID_DIRECTION
public static final int HEADING_WORD_LENGTH
public static final int COMPASS_BUFFER
public static final int COMPASS_BUFFER_SIZE
public HiTechnicNxtCompassSensor(I2cController module, int physicalPort)
protected void controllerNowArmedOrPretending()
public java.lang.String toString()
public double getDirection()
public java.lang.String status()
public void setMode(CompassMode mode)
public boolean calibrationFailed()
public void portIsReady(int port)
public Manufacturer getManufacturer()
public java.lang.String getDeviceName()
public java.lang.String getConnectionInfo()
public int getVersion()
public void resetDeviceConfigurationForOpMode()
public void close()