Package frc.lib5k.components.sensors
Class LineBreak
- java.lang.Object
-
- edu.wpi.first.wpilibj.InterruptableSensorBase
-
- edu.wpi.first.wpilibj.DigitalSource
-
- edu.wpi.first.wpilibj.DigitalInput
-
- frc.lib5k.components.sensors.LineBreak
-
- All Implemented Interfaces:
edu.wpi.first.wpilibj.Sendable
,IBinarySensor
,java.lang.AutoCloseable
public class LineBreak extends edu.wpi.first.wpilibj.DigitalInput implements IBinarySensor
-
-
Constructor Summary
Constructors Constructor Description LineBreak(int channel)
Create a Line Break sensor object for a sensor that is powered via an external sourceLineBreak(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
-
-
-
-
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 channelpcmID
- PCM CAN device IDpcmChannel
- 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
-
-