public class HiTechnicNxtIrSeekerSensor
extends I2cControllerPortDeviceImpl
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_SIGNAL_DETECTED_THRESHOLD |
static byte |
DIRECTION |
static double[] |
DIRECTION_TO_ANGLE |
static I2cAddr |
I2C_ADDRESS |
static byte |
INVALID_ANGLE |
static byte |
MAX_ANGLE |
static double |
MAX_SENSOR_STRENGTH |
static int |
MEM_AC_START_ADDRESS |
static int |
MEM_DC_START_ADDRESS |
static int |
MEM_MODE_ADDRESS |
static int |
MEM_READ_LENGTH |
static byte |
MIN_ANGLE |
static byte |
MODE_AC |
static byte |
MODE_DC |
static byte |
SENSOR_COUNT |
static byte |
SENSOR_FIRST |
Constructor and Description |
---|
HiTechnicNxtIrSeekerSensor(I2cController module,
int physicalPort) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
controllerNowArmedOrPretending() |
double |
getAngle() |
java.lang.String |
getConnectionInfo() |
java.lang.String |
getDeviceName() |
I2cAddr |
getI2cAddress() |
IrSeekerIndividualSensor[] |
getIndividualSensors() |
Manufacturer |
getManufacturer() |
Mode |
getMode() |
double |
getSignalDetectedThreshold() |
double |
getStrength() |
int |
getVersion() |
void |
portIsReady(int port) |
void |
resetDeviceConfigurationForOpMode() |
void |
setI2cAddress(I2cAddr newAddress) |
void |
setMode(Mode mode) |
void |
setSignalDetectedThreshold(double threshold) |
boolean |
signalDetected() |
java.lang.String |
toString() |
public static final I2cAddr I2C_ADDRESS
public static final int MEM_MODE_ADDRESS
public static final int MEM_DC_START_ADDRESS
public static final int MEM_AC_START_ADDRESS
public static final int MEM_READ_LENGTH
public static final byte MODE_AC
public static final byte MODE_DC
public static final byte DIRECTION
public static final byte SENSOR_FIRST
public static final byte SENSOR_COUNT
public static final double MAX_SENSOR_STRENGTH
public static final byte INVALID_ANGLE
public static final byte MIN_ANGLE
public static final byte MAX_ANGLE
public static final double[] DIRECTION_TO_ANGLE
public static final double DEFAULT_SIGNAL_DETECTED_THRESHOLD
public HiTechnicNxtIrSeekerSensor(I2cController module, int physicalPort)
protected void controllerNowArmedOrPretending()
public java.lang.String toString()
public void setSignalDetectedThreshold(double threshold)
public double getSignalDetectedThreshold()
public void setMode(Mode mode)
public Mode getMode()
public boolean signalDetected()
public double getAngle()
public double getStrength()
public IrSeekerIndividualSensor[] getIndividualSensors()
public void setI2cAddress(I2cAddr newAddress)
public I2cAddr getI2cAddress()
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()