Method: Phidgets::BLDCMotor#addPositionOffset
- Defined in:
- ext/phidgets/phidgets_bldc_motor.c
#addPositionOffset(position_offset) ⇒ Object Also known as: add_position_offset
Adds an offset (positive or negative) to the current position. This can be especially useful for zeroing position.
73 74 75 76 |
# File 'ext/phidgets/phidgets_bldc_motor.c', line 73
VALUE ph_bldc_motor_add_position_offset(VALUE self, VALUE offset) {
ph_raise(PhidgetBLDCMotor_addPositionOffset((PhidgetBLDCMotorHandle)get_ph_handle(self), NUM2DBL(offset)));
return Qnil;
}
|