Class LineBreak

  • All Implemented Interfaces:
    edu.wpi.first.wpilibj.Sendable, IBinarySensor, java.lang.AutoCloseable

    public class LineBreak
    extends edu.wpi.first.wpilibj.DigitalInput
    implements IBinarySensor
    • Nested Class Summary

      • Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.InterruptableSensorBase

        edu.wpi.first.wpilibj.InterruptableSensorBase.WaitResult
    • Field Summary

      • Fields inherited from class edu.wpi.first.wpilibj.InterruptableSensorBase

        m_interrupt, m_isSynchronousInterrupt
    • Constructor Summary

      Constructors 
      Constructor Description
      LineBreak​(int channel)
      Create a Line Break sensor object for a sensor that is powered via an external source
      LineBreak​(int dioChannel, int pcmID, int pcmChannel)
      Create a Line Break sensor object for a sensor that is powered via a Pneumatic Control Module
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()
      Flush the CAN bus and send a new packet to keep external power enabled
      • Methods inherited from class edu.wpi.first.wpilibj.DigitalInput

        close, get, getAnalogTriggerTypeForRouting, getChannel, getPortHandleForRouting, initSendable, isAnalogTrigger, setSimDevice
      • Methods inherited from class edu.wpi.first.wpilibj.InterruptableSensorBase

        allocateInterrupts, cancelInterrupts, disableInterrupts, enableInterrupts, readFallingTimestamp, readRisingTimestamp, requestInterrupts, requestInterrupts, requestInterrupts, setUpSourceEdge, waitForInterrupt, waitForInterrupt
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface frc.lib5k.components.sensors.interfaces.IBinarySensor

        get
      • Methods inherited from interface edu.wpi.first.wpilibj.Sendable

        addChild, getName, getSubsystem, setName, setName, setName, setName, setSubsystem
    • Constructor Detail

      • LineBreak

        public LineBreak​(int dioChannel,
                         int pcmID,
                         int pcmChannel)
        Create a Line Break sensor object for a sensor that is powered via a Pneumatic Control Module
        Parameters:
        dioChannel - DigitalIO signal channel
        pcmID - PCM CAN device ID
        pcmChannel - PCM device channel
      • LineBreak

        public LineBreak​(int channel)
        Create a Line Break sensor object for a sensor that is powered via an external source
        Parameters:
        channel - DigitalIO channel
    • Method Detail

      • flush

        public void flush()
        Flush the CAN bus and send a new packet to keep external power enabled