コード例 #1
0
        public PTSpeedControlMode GetSpeedMode()
        {
            Byte b = _c.GetByte(PTCommand.GetControlMode);

            _controlMode = (PTSpeedControlMode)b;
            return(_controlMode);
        }
コード例 #2
0
        public void SetSpeedMode(PTSpeedControlMode mode)
        {
            PTCommand cmd = mode == PTSpeedControlMode.Independent ?
                            PTCommand.SetControlModeIndependent :
                            PTCommand.SetControlModePureVelocity;

            Byte result = _c.GetByte(cmd);

            ValidateResult(result);

            this._controlMode = mode;
        }