CSharpRoboticsLib.WPIExtensions.ManagedCompressor.Update C# (CSharp) Method

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
        public void Update()
        {
            if (ControllerPower.GetInputVoltage() < VoltageThreshold - VoltageDeadband)
            {
                Stop();
            }
            else if(ControllerPower.GetInputVoltage() > VoltageThreshold + VoltageDeadband)
            {
                Start();
            }
        }