public class HTInfraredSeeker extends Sensor
Constructor and Description |
---|
HTInfraredSeeker()
Creates a sensor instance connected to port S1.
|
HTInfraredSeeker(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.
|
getLejosPort
public HTInfraredSeeker(SensorPort port)
port
- the port where the sensor is plugged-inpublic HTInfraredSeeker()
public int getDirection()
public lejos.hardware.sensor.HiTechnicIRSeekerV2 getLejosSensor()