public PTSpeedControlMode GetSpeedMode() { Byte b = _c.GetByte(PTCommand.GetControlMode); _controlMode = (PTSpeedControlMode)b; return(_controlMode); }
public void SetSpeedMode(PTSpeedControlMode mode) { PTCommand cmd = mode == PTSpeedControlMode.Independent ? PTCommand.SetControlModeIndependent : PTCommand.SetControlModePureVelocity; Byte result = _c.GetByte(cmd); ValidateResult(result); this._controlMode = mode; }