C# Class CSharpRoboticsLib.Utility.InputFilter

Input filter functionally identical to that in the NI LabVIEW Controller library
Show file Open project: shockwave4488/CSharpRoboticsLib Class Usage Examples

Private Properties

Property Type Description
Update void

Public Methods

Method Description
Get ( ) : double

Gets the filtered value of the input without pushing a new value to the internal buffer

Get ( double value ) : double

Gets the filtered output of the internal state

InputFilter ( )

Constructs a new InputFilter initialized to Zero

InputFilter ( double initialState )

Constructs a new InputFilter

ReInitialize ( double setTo ) : void

sets all internal states to the double specified

Private Methods

Method Description
Update ( double input ) : void

Updates the internal state by adding the input

Method Details

Get() public method

Gets the filtered value of the input without pushing a new value to the internal buffer
public Get ( ) : double
return double

Get() public method

Gets the filtered output of the internal state
public Get ( double value ) : double
value double Value to update the with
return double

InputFilter() public method

Constructs a new InputFilter initialized to Zero
public InputFilter ( )

InputFilter() public method

Constructs a new InputFilter
public InputFilter ( double initialState )
initialState double Initial state of the filter

ReInitialize() public method

sets all internal states to the double specified
public ReInitialize ( double setTo ) : void
setTo double
return void