C# Class CSharpRoboticsLib.WPIExtensions.EnhancedDigitalInput

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

Méthodes publiques

Méthode 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 méthode

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

Get() public méthode

Get the value from the Enhanced Digital Input Channel
public Get ( ) : bool
Résultat bool

GetFalling() public méthode

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

GetFallingUpdate() public méthode

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

GetRising() public méthode

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

GetRisingUpdate() public méthode

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

Update() public méthode

Manually update the internal state of the edge trigger
public Update ( ) : void
Résultat void