CSharpRoboticsLib.WPIExtensions.ManagedCompressor.Update C# (CSharp) Méthode

Update() public méthode

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