Class LineBreak
- java.lang.Object
-
- edu.wpi.first.wpilibj.InterruptableSensorBase
-
- edu.wpi.first.wpilibj.DigitalSource
-
- edu.wpi.first.wpilibj.DigitalInput
-
- io.github.frc5024.lib5k.hardware.generic.sensors.LineBreak
-
- All Implemented Interfaces:
Sendable
,IBinarySensor
,java.lang.AutoCloseable
public class LineBreak extends DigitalInput implements IBinarySensor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj.InterruptableSensorBase
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 sourceLineBreak(int dioChannel, int pcmID, int pcmChannel)
Create a Line Break sensor object for a sensor that is powered via a Pneumatic Control ModuleLineBreak(int dioChannel, Solenoid pcmPowerSource)
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
close()
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
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 io.github.frc5024.lib5k.hardware.common.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 channelpcmID
- PCM CAN device IDpcmChannel
- PCM device channel
-
LineBreak
public LineBreak(int dioChannel, Solenoid pcmPowerSource)
Create a Line Break sensor object for a sensor that is powered via a Pneumatic Control Module- Parameters:
dioChannel
- DigitalIO signal channelpcmPowerSource
- Solenoid power output
-
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
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Overrides:
close
in classDigitalInput
-
-