Package frclib.sensor
Class FrcDigitalInput
java.lang.Object
trclib.sensor.TrcDigitalInput
frclib.sensor.FrcDigitalInput
This class implements a platform dependent digital input sensor extending TrcDigitalInput. It provides
implementation of the abstract methods in TrcDigitalInput.
-
Field Summary
Fields inherited from class trclib.sensor.TrcDigitalInput
getInputElapsedTimer, instanceName
-
Constructor Summary
ConstructorsConstructorDescriptionFrcDigitalInput
(String instanceName, int channel) Constructor: Creates an instance of the object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns the state of the digital input sensor.Methods inherited from class trclib.sensor.TrcDigitalInput
isActive, printElapsedTime, setElapsedTimerEnabled, setInverted, toString
-
Constructor Details
-
FrcDigitalInput
Constructor: Creates an instance of the object.- Parameters:
instanceName
- specifies the instance name.channel
- specifies the digital I/O channel.
-
-
Method Details
-
getInputState
public boolean getInputState()This method returns the state of the digital input sensor.- Specified by:
getInputState
in classTrcDigitalInput
- Returns:
- true if the digital input sensor is active, false otherwise.
-