Method: Phidgets::DCMotor#setBackEMFSensingState

Defined in:
ext/phidgets/phidgets_dc_motor.c

#setBackEMFSensingState(sensing_state) ⇒ Object Also known as: back_emf_sensing_state=

When BackEMFSensingState is enabled, the controller will measure and report the BackEMF. The motor will coast (freewheel) 5% of the time while the back EMF is being measured (800μs every 16ms). Therefore, at a DutyCycle of 100%, the motor will only be driven for 95% of the time.



40
41
42
43
# File 'ext/phidgets/phidgets_dc_motor.c', line 40

VALUE ph_dc_motor_set_back_emf_sensing_state(VALUE self, VALUE sensing_state) {
  ph_raise(PhidgetDCMotor_setBackEMFSensingState((PhidgetDCMotorHandle)get_ph_handle(self), TYPE(sensing_state) == T_TRUE ? PTRUE : PFALSE));
  return Qnil;
}