ch.aplu.ftcontroller
Class AnalogIn

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

public class AnalogIn
extends java.lang.Object

A class the represents one of the analog input ports (A1, A2).


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

Method Detail

getValue

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

Returns:
the current value (0..1023)

setJitter

public void setJitter(int jitter)
Sets the jitter interval. This defines an interval around the current port value. A new input value must lay outside this interval in order an AnalogInput event is triggered. This may be useful to suppress fluctuations due to noise.

Parameters:
jitter - the interval to suppress noise (0..1000)