Parallax Motor Position Controller TRVL Command
I am having an issue with the TRVL 0 (0x20) Command. If I use the TRLV
command for Forward and Backward motion all appears to work fine.
However if I use the TRVL 0 command to attempt to stop the motor fail stop the motor.
TRVL 0 appears to continue to move the motor until it reaches the previously programmed
position.
Using the CLRP command (0x28) works fine (Just abruptly)
From what I read it should slow-stop at ramp rate. (Unless I'm reading it wrong)
Any clarification of the TRVL 0 command would be greatly appreciated.
Thanks in advance,
Neal
Excerpt from Parallax Documentation:
"Sending a command to travel 0 positions is a special case
used to bring the wheel to a smooth stop when traveling. The
current speed is decelerated at the speed ramp rate and the
end point is advanced to the exact location where the speed
will reach zero. Note that this special case is not
considered accumulative and will override the previously
remaining distance to travel. However, TRVL commands sent
after this will be accumulative as expected."
command for Forward and Backward motion all appears to work fine.
However if I use the TRVL 0 command to attempt to stop the motor fail stop the motor.
TRVL 0 appears to continue to move the motor until it reaches the previously programmed
position.
Using the CLRP command (0x28) works fine (Just abruptly)
From what I read it should slow-stop at ramp rate. (Unless I'm reading it wrong)
Any clarification of the TRVL 0 command would be greatly appreciated.
Thanks in advance,
Neal
Excerpt from Parallax Documentation:
"Sending a command to travel 0 positions is a special case
used to bring the wheel to a smooth stop when traveling. The
current speed is decelerated at the speed ramp rate and the
end point is advanced to the exact location where the speed
will reach zero. Note that this special case is not
considered accumulative and will override the previously
remaining distance to travel. However, TRVL commands sent
after this will be accumulative as expected."
Comments
Any feedback on the Position Controller in the real world would be greatly appreciated as I'm stuck.
Thanks,
Neal