/**
  * <summary>
  *   Changes immediately the braking force applied to the motor (in percents).
  * <para>
  *   The value 0 corresponds to no braking (free wheel). When the braking force
  *   is changed, the driving power is set to zero. The value is a percentage.
  * </para>
  * <para>
  * </para>
  * </summary>
  * <param name="newval">
  *   a floating point number corresponding to immediately the braking force applied to the motor (in percents)
  * </param>
  * <para>
  * </para>
  * <returns>
  *   <c>0</c> if the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public int set_brakingForce(double newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Motor connected");
     }
     if (newval == _BrakingForce_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_brakingForce(newval));
 }