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.
|
public HTInfraredSeeker(SensorPort port)
port
- the port where the sensor is plugged-inpublic HTInfraredSeeker()