When using RotateMotor, the speed is not regulated. Does anyone have an idea on how to make this happen?
I found a way that works:
- Code: Select all
OnFwdRegEx(motor, speed, OUT_REGMODE_SPEED, RESET_NONE);
SetOutput(motor, TachoLimitField, angle, UpdateFlagsField, UF_UPDATE_TACHO_LIMIT);
The only problem with this method is that after reaching the position, the motor will Coast and will not control its position, around the target, like it happens with RotateMotor().