Shop OBEX P1 Docs P2 Docs Learn Events
Parallax Motor Position Controller TRVL Command — Parallax Forums

Parallax Motor Position Controller TRVL Command

nealznealz Posts: 3
edited 2011-04-21 20:09 in Robotics
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."

Comments

  • nealznealz Posts: 3
    edited 2011-04-21 20:09
    Hey fellow Paralax-ens....
    Any feedback on the Position Controller in the real world would be greatly appreciated as I'm stuck.

    Thanks,
    Neal
Sign In or Register to comment.