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