/** * <summary> * Returns the power sent to the motor, as a percentage between -100% and +100%. * <para> * </para> * <para> * </para> * </summary> * <returns> * a floating point number corresponding to the power sent to the motor, as a percentage between -100% and +100% * </returns> * <para> * On failure, throws an exception or returns <c>YMotor.DRIVINGFORCE_INVALID</c>. * </para> */ public double get_drivingForce() { double res; if (_func == null) { throw new YoctoApiProxyException("No Motor connected"); } res = _func.get_drivingForce(); if (res == YAPI.INVALID_DOUBLE) { res = Double.NaN; } return(res); }