Method: Phidgets::BLDCMotor#getTargetBrakingStrength

Defined in:
ext/phidgets/phidgets_bldc_motor.c

#getTargetBrakingStrengthObject Also known as: target_braking_strength

When a motor is not being actively driven forward or reverse, you can choose if the motor will be allowed to freely turn, or will resist being turned. A low TargetBrakingStrength value corresponds to free wheeling, this will have the following effects: The motor will continue to rotate after the controller is no longer driving the motor (i.e. Velocity is 0), due to inertia. The motor shaft will provide little resistance to being turned when it is stopped. A higher TargetBrakingStrength value will resist being turned, this will have the following effects: The motor will more stop more quickly if it is in motion and braking has been requested. It will fight against the rotation of the shaft. Braking mode is enabled by setting the Velocity to MinVelocity.



104
105
106
# File 'ext/phidgets/phidgets_bldc_motor.c', line 104

VALUE ph_bldc_motor_get_target_braking_strength(VALUE self) {
  return ph_get_double(get_ph_handle(self), (phidget_get_double_func)PhidgetBLDCMotor_getTargetBrakingStrength);
}