After migrating to MW14, my code no longer works and I've tried a variety of changes without success. To recap, I successfully used the following line to track speed with measured torque in MW12:
CTRL_setSpd_ref_krpm(ctrlHandle, _IQ(0.02 + (0.1 * gMotorVars.Torque_lbin)))
The following used the "abs" function to ensure correct direction (strangely, it behaved differently if the abs was before the 0.01):
gMotorVars.SpeedRef_krpm=_IQ(0.02 + (0.01 * abs(gMotorVars.Torque_Nm)));
CTRL_setSpd_ref_krpm(ctrlHandle,gMotorVars.SpeedRef_krpm);
The result is the motor just spins fast. I've tried many permutations, including making the torque multiplier 0.0001. In that case, I expect it to go at 20 RPM (as it did with just a 0.02 argument), but the speed is the same.
Thanks, Bill
EDIT: added 2nd line (CTRL...)