Java 类edu.wpi.first.wpilibj.DigitalSource 实例源码

项目:Frc2016FirstStronghold    文件:DigitalGlitchFilter.java   
private static void setFilter(DigitalSource input, int channelIndex) {
  if (input != null) { // Counter might have just one input
    DigitalGlitchFilterJNI.setFilterSelect(input.m_port, channelIndex);

    int selected = DigitalGlitchFilterJNI.getFilterSelect(input.m_port);
    if (selected != channelIndex) {
      throw new IllegalStateException("DigitalGlitchFilterJNI.setFilterSelect("
          + channelIndex + ") failed -> " + selected);
    }
  }
}
项目:RKellyBot    文件:EncoderSmooth.java   
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource, boolean reverseDirection) {
super(aSource, bSource, reverseDirection);
   }
项目:RKellyBot    文件:EncoderSmooth.java   
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource) {
super(aSource, bSource);
   }
项目:RKellyBot    文件:EncoderSmooth.java   
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource, boolean reverseDirection, EncodingType encodingType) {
super(aSource, bSource, reverseDirection, encodingType);
   }
项目:RKellyBot    文件:EncoderSmooth.java   
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource, DigitalSource indexSource, boolean reverseDirection) {
super(aSource, bSource, indexSource, reverseDirection);
   }
项目:RKellyBot    文件:EncoderSmooth.java   
public EncoderSmooth(DigitalSource aSource, DigitalSource bSource, DigitalSource indexSource) {
super(aSource, bSource, indexSource);
   }
项目:2013-code-v2    文件:NewEncoder.java   
public NewEncoder(DigitalSource aSource, DigitalSource bSource, DigitalSource indexSource) {
    super(aSource, bSource, indexSource);
}
项目:2013-code-v2    文件:NewEncoder.java   
public NewEncoder(DigitalSource aSource, DigitalSource bSource, DigitalSource indexSource, boolean reverseDirection) {
    super(aSource, bSource, indexSource, reverseDirection);
}
项目:2013-code-v2    文件:NewEncoder.java   
public NewEncoder(DigitalSource aSource, DigitalSource bSource, boolean reverseDirection, EncodingType encodingType) {
    super(aSource, bSource, reverseDirection, encodingType);
}
项目:2013-code-v2    文件:NewEncoder.java   
public NewEncoder(DigitalSource aSource, DigitalSource bSource) {
    super(aSource, bSource);
}
项目:2013-code-v2    文件:NewEncoder.java   
public NewEncoder(DigitalSource aSource, DigitalSource bSource, boolean reverseDirection) {
    super(aSource, bSource, reverseDirection);
}
项目:Frc2016FirstStronghold    文件:DigitalGlitchFilter.java   
/**
 * Assigns the DigitalSource to this glitch filter.
 *
 * @param input The DigitalSource to add.
 */
public void add(DigitalSource input) {
  setFilter(input, m_channelIndex + 1);
}
项目:Frc2016FirstStronghold    文件:DigitalGlitchFilter.java   
/**
 * Removes this filter from the given digital input.
 *
 * @param input The DigitalSource to stop filtering.
 */
public void remove(DigitalSource input) {
  setFilter(input, 0);
}