SympatheticHardwareControl.Controller.isLaserLocked C# (CSharp) Method

isLaserLocked() private method

private isLaserLocked ( double threshold, double error ) : bool
threshold double
error double
return bool
        private bool isLaserLocked(double threshold, double error)
        {
            if (-threshold <= error && error <= threshold)
            {
                return true;
            }
            else
            {
                return false;
            }
        }