C# Class CSharpRoboticsLib.WPIExtensions.EnhancedDigitalInput

Digital input with built-in edge detecting and inversion
Inheritance: WPILib.DigitalInput
Show file Open project: shockwave4488/CSharpRoboticsLib Class Usage Examples

Public Methods

Method Description
EnhancedDigitalInput ( int channel ) : CSharpRoboticsLib.FlowControl

Create an instance of EnhancedDigitalInput

Get ( ) : bool

Get the value from the Enhanced Digital Input Channel

GetFalling ( ) : bool

Returns true if there is a falling edge, does not update the internal state

GetFallingUpdate ( ) : bool

Returns true if there is a falling edge and updates the internal state

GetRising ( ) : bool

Returns true if there is a rising edge, does not update the internal state

GetRisingUpdate ( ) : bool

Returns true if there is a rising edge and updates the internal state

Update ( ) : void

Manually update the internal state of the edge trigger

Method Details

EnhancedDigitalInput() public method

Create an instance of EnhancedDigitalInput
public EnhancedDigitalInput ( int channel ) : CSharpRoboticsLib.FlowControl
channel int Channel to assign to this input
return CSharpRoboticsLib.FlowControl

Get() public method

Get the value from the Enhanced Digital Input Channel
public Get ( ) : bool
return bool

GetFalling() public method

Returns true if there is a falling edge, does not update the internal state
public GetFalling ( ) : bool
return bool

GetFallingUpdate() public method

Returns true if there is a falling edge and updates the internal state
public GetFallingUpdate ( ) : bool
return bool

GetRising() public method

Returns true if there is a rising edge, does not update the internal state
public GetRising ( ) : bool
return bool

GetRisingUpdate() public method

Returns true if there is a rising edge and updates the internal state
public GetRisingUpdate ( ) : bool
return bool

Update() public method

Manually update the internal state of the edge trigger
public Update ( ) : void
return void