| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wpi.first.wpilibj.AnalogTrigger
public class AnalogTrigger
Class for creating and configuring Analog Triggers
| Nested Class Summary | |
|---|---|
|  class | AnalogTrigger.AnalogTriggerExceptionExceptions dealing with improper operation of the Analog trigger | 
| Field Summary | |
|---|---|
| protected  int | m_indexWhere the analog trigger is attached | 
| Constructor Summary | |
|---|---|
| AnalogTrigger(AnalogChannel channel)Construct an analog trigger given an analog channel. | |
| AnalogTrigger(int channel)Constructor for an analog trigger given a channel number. | |
| AnalogTrigger(int moduleNumber,
              int channel)Constructor for an analog trigger given both the module number and channel. | |
| Method Summary | |
|---|---|
|  void | free()Release the resources used by this object | 
|  int | getIndex()Return the index of the analog trigger. | 
|  boolean | getInWindow()Return the InWindow output of the analog trigger. | 
|  boolean | getTriggerState()Return the TriggerState output of the analog trigger. | 
| protected  void | initTrigger(int moduleNumber,
            int channel)Initialize an analog trigger from a module number and channel. | 
|  void | setAveraged(boolean useAveragedValue)Configure the analog trigger to use the averaged vs. | 
|  void | setFiltered(boolean useFilteredValue)Configure the analog trigger to use a filtered value. | 
|  void | setLimitsRaw(int lower,
             int upper)Set the upper and lower limits of the analog trigger. | 
|  void | setLimitsVoltage(double lower,
                 double upper)Set the upper and lower limits of the analog trigger. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected int m_index
| Constructor Detail | 
|---|
public AnalogTrigger(int channel)
channel - the port to use for the analog trigger
public AnalogTrigger(int moduleNumber,
                     int channel)
moduleNumber - The number of the analog module to create this trigger on.channel - the port to use for the analog triggerpublic AnalogTrigger(AnalogChannel channel)
channel - the AnalogChannel to use for the analog trigger| Method Detail | 
|---|
protected void initTrigger(int moduleNumber,
                           int channel)
moduleNumber - The number of the analog module to create this trigger on.channel - the port to use for the analog triggerpublic void free()
public void setLimitsRaw(int lower,
                         int upper)
lower - the lower raw limitupper - the upper raw limit
public void setLimitsVoltage(double lower,
                             double upper)
lower - the lower voltage limitupper - the upper voltage limitpublic void setAveraged(boolean useAveragedValue)
useAveragedValue - true to use an averaged value, false otherwisepublic void setFiltered(boolean useFilteredValue)
useFilteredValue - true to use a filterd value, false otherwisepublic int getIndex()
public boolean getInWindow()
public boolean getTriggerState()
| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||