ch.aplu.ftcontroller
Class ResistorIn

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

public class ResistorIn
extends java.lang.Object

A class the represents one of the resistor input ports (AX, AY).


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 ResistorInput event is triggered. This may be useful to suppress fluctuations due to noise.

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