/// <summary> /// Set a given actuator to its maximum position /// </summary> /// <param name="actuator"></param> public void setActuatorMaxPosition(Actuator actuator) { if (actuator == null) { Helper.Logger("HaptiQ_API.HaptiQ.setActuatorMaxPosition:: (" + _id + ") actuator is null"); throw new ArgumentNullException("HaptiQ_API.HaptiQ.setActuatorMaxPosition:: actuator"); } else { lock (_actuators) { actuator.setToMaximum(); } } }
/// <summary> /// Set a specific actuator's position in percentage /// </summary> /// <param name="actuator"></param> /// <param name="percentage"></param> public void setActuatorPositionByPercentage(Actuator actuator, double percentage) { if (actuator == null) { Helper.Logger("HaptiQ_API.HaptiQ.setActuatorPositionByPercentage:: (" + _id + ") actuator is null"); throw new ArgumentNullException("HaptiQ_API.HaptiQ.setActuatorPosition:: actuator"); } else { lock (_actuators) { actuator.setHeightByPercentage(percentage); } } }