Package com.alumiboti5590.eop.components
Class LimitSwitch
- java.lang.Object
-
- edu.wpi.first.wpilibj.DigitalSource
-
- edu.wpi.first.wpilibj.DigitalInput
-
- com.alumiboti5590.eop.components.LimitSwitch
-
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
,java.lang.AutoCloseable
public class LimitSwitch extends edu.wpi.first.wpilibj.DigitalInput
Shortcut wrapper around the WPIDigitalInput
class for a Digital I/O-configured Limit Switch.
-
-
Constructor Summary
Constructors Constructor Description LimitSwitch(int channel)
Create an instance of a LimitSwitch class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEngaged()
Same asget()
, but it's a bit more clearer on the physical result of the limit switch being pressed and engaged, or not.
-