Method: Phidgets::BLDCMotor#setRescaleFactor

Defined in:
ext/phidgets/phidgets_bldc_motor.c

#setRescaleFactor(rescale_factor) ⇒ Object Also known as: rescale_factor=

Change the units of your parameters so that your application is more intuitive. Units for Position can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees. For more information on how to apply the RescaleFactor to your application, see your controller’s User Guide.



82
83
84
85
# File 'ext/phidgets/phidgets_bldc_motor.c', line 82

VALUE ph_bldc_motor_set_rescale_factor(VALUE self, VALUE rescale_factor) {
  ph_raise(PhidgetBLDCMotor_setRescaleFactor((PhidgetBLDCMotorHandle)get_ph_handle(self), NUM2DBL(rescale_factor)));
  return Qnil;
}