SympatheticHardwareControl.Controller.isLaserLocked C# (CSharp) Méthode

isLaserLocked() private méthode

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