ch.aplu.ftcontroller
Class DistanceIn

java.lang.Object
  extended by ch.aplu.ftcontroller.DistanceIn

public class DistanceIn
extends java.lang.Object

A class the represents one of the distance sensor ports (D1, D1).


Method Summary
 int getDistance()
          Polls the port and returns its current value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDistance

public int getDistance()
Polls the port and returns its current value.

Returns:
the current distance (0..128 cm)