C# Class CSharpRoboticsLib.WPIExtensions.ManagedCompressor

A Compressor which will not run if the voltage is too low.
Inheritance: WPILib.Compressor
Datei anzeigen Open project: shockwave4488/CSharpRoboticsLib

Public Methods

Method Description
ManagedCompressor ( double voltageThreshold ) : WPILib

Creates a new Managed Compressor, which will turn off when the voltage is below the specified level.

ManagedCompressor ( double voltageThreshold, double period ) : WPILib

Creates a new Managed Compressor, which will turn off when the volrage is below the specified level.

Update ( ) : void

Manually Udates the compressor, turning it on or off if necessary. Called automatically according to the period value if UseTimer is enabled.

Method Details

ManagedCompressor() public method

Creates a new Managed Compressor, which will turn off when the voltage is below the specified level.
public ManagedCompressor ( double voltageThreshold ) : WPILib
voltageThreshold double Voltage to turn off the compressor at
return WPILib

ManagedCompressor() public method

Creates a new Managed Compressor, which will turn off when the volrage is below the specified level.
public ManagedCompressor ( double voltageThreshold, double period ) : WPILib
voltageThreshold double Voltage to turn off the compressor at
period double
return WPILib

Update() public method

Manually Udates the compressor, turning it on or off if necessary. Called automatically according to the period value if UseTimer is enabled.
public Update ( ) : void
return void