/** * <summary> * Changes progressively the power sent to the motor for a specific duration. * <para> * </para> * </summary> * <param name="targetPower"> * desired motor power, in percents (between -100% and +100%) * </param> * <param name="delay"> * duration (in ms) of the transition * </param> * <returns> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public virtual int drivingForceMove(double targetPower, int delay) { if (_func == null) { throw new YoctoApiProxyException("No Motor connected"); } return(_func.drivingForceMove(targetPower, delay)); }