public class DigitalGlitchFilter extends SensorBase
kAnalogInputChannels, kAnalogOutputChannels, kDigitalChannels, kPCMModules, kPDPChannels, kPDPModules, kPwmChannels, kRelayChannels, kSolenoidChannels, kSystemClockTicksPerMicrosecond| Constructor and Description | 
|---|
| DigitalGlitchFilter()Configures the Digital Glitch Filter to its default settings. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(Counter input)Assigns the Counter to this glitch filter. | 
| void | add(DigitalSource input)Assigns the DigitalSource to this glitch filter. | 
| void | add(Encoder input)Assigns the Encoder to this glitch filter. | 
| void | free()Free the resources used by this object. | 
| int | getPeriodCycles()Gets the number of FPGA cycles that the input must hold steady to pass through this glitch
 filter. | 
| long | getPeriodNanoSeconds()Gets the number of nanoseconds that the input must hold steady to pass through this glitch
 filter. | 
| void | remove(Counter input)Removes this filter from the given Counter. | 
| void | remove(DigitalSource input)Removes this filter from the given digital input. | 
| void | remove(Encoder input)Removes this filter from the given Encoder. | 
| void | setPeriodCycles(int fpgaCycles)Sets the number of FPGA cycles that the input must hold steady to pass through this glitch
 filter. | 
| void | setPeriodNanoSeconds(long nanoseconds)Sets the number of nanoseconds that the input must hold steady to pass through this glitch
 filter. | 
checkAnalogInputChannel, checkAnalogOutputChannel, checkDigitalChannel, checkPDPChannel, checkPDPModule, checkPWMChannel, checkRelayChannel, checkSolenoidChannel, checkSolenoidModule, getDefaultSolenoidModule, setDefaultSolenoidModulepublic DigitalGlitchFilter()
public void free()
free in class SensorBasepublic void add(DigitalSource input)
input - The DigitalSource to add.public void add(Encoder input)
input - The Encoder to add.public void add(Counter input)
input - The Counter to add.public void remove(DigitalSource input)
input - The DigitalSource to stop filtering.public void remove(Encoder input)
input - the Encoder to stop filtering.public void remove(Counter input)
input - The Counter to stop filtering.public void setPeriodCycles(int fpgaCycles)
fpgaCycles - The number of FPGA cycles.public void setPeriodNanoSeconds(long nanoseconds)
nanoseconds - The number of nanoseconds.public int getPeriodCycles()
public long getPeriodNanoSeconds()