public class HTInfraredSeekerV2 extends Sensor
| Constructor and Description |
|---|
HTInfraredSeekerV2()
Creates a sensor instance connected to port S1.
|
HTInfraredSeekerV2(SensorPort port)
Creates a sensor instance connected to the given port.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDirection()
Returns the direction (1..9) to the detected infrared source.
|
lejos.hardware.sensor.HiTechnicIRSeekerV2 |
getLejosSensor()
Returns the reference of the the underlying lejos.hardware.sensor.HiTechnicIRSeekerV2.
|
getLejosPortpublic HTInfraredSeekerV2(SensorPort port)
port - the port where the sensor is plugged-inpublic HTInfraredSeekerV2()
public int getDirection()
public lejos.hardware.sensor.HiTechnicIRSeekerV2 getLejosSensor()