/** * <summary> * Returns the braking force applied to the motor, as a percentage. * <para> * The value 0 corresponds to no braking (free wheel). * </para> * <para> * </para> * </summary> * <returns> * a floating point number corresponding to the braking force applied to the motor, as a percentage * </returns> * <para> * On failure, throws an exception or returns <c>YMotor.BRAKINGFORCE_INVALID</c>. * </para> */ public double get_brakingForce() { double res; if (_func == null) { throw new YoctoApiProxyException("No Motor connected"); } res = _func.get_brakingForce(); if (res == YAPI.INVALID_DOUBLE) { res = Double.NaN; } return(res); }