Example #1
0
        public bool Jump(IPlatformPos pos, double jumpHeight = 0, double[] vel = null, int timeout = -1, bool checkLimit = true, double zLimit = 0d)
        {
            if (!RunSafeCheck(Task == null ? SafeCheckType.Manual : SafeCheckType.Auto))
            {
                return(false);
            }

            return(Axis.Jump(Task, pos.Data(), vel ?? Vel, jumpHeight, timeout, checkLimit, zLimit));
        }
Example #2
0
        public bool MoveAbs(IPlatformPos pos, double[] vel = null, int timeout = -1, bool checkLimit = true)
        {
            if (!RunSafeCheck(Task == null ? SafeCheckType.Manual : SafeCheckType.Auto))
            {
                return(false);
            }

            return(Axis.MoveAbs(Task, pos.Data(), vel ?? Vel, timeout, checkLimit));
        }
Example #3
0
        public bool MoveAbsAsync(IPlatformPos pos, double[] vel = null)
        {
            if (!RunSafeCheck(Task == null ? SafeCheckType.Manual : SafeCheckType.Auto))
            {
                return(false);
            }

            return(Axis.MoveAbsAsync(Task, pos.Data(), vel ?? Vel));
        }
Example #4
0
        public bool MoveAbs(int i, IPlatformPos pos, int timeout = -1, bool checkLimit = true)
        {
            if (!RunSafeCheck(Task == null ? SafeCheckType.Manual : SafeCheckType.Auto, i))
            {
                return(false);
            }

            return(Axis[i] != null && Axis[i].MoveAbs(Task, pos.Data()[i], Axis[i].AxisSpeed, timeout, checkLimit));
        }