RotationLimit LEGO Nxt

Hi all,

I've noticed the RotationLimit (TachoLimit) field of the output-state ... what does it do ?
Could I use it to rotate the "robot" for specific degrees ?

When I set it to any value, the wheel rotates for a constant time (for any RotationLimit value) then stops, and then whenever I send a move command again (the same that let it rotate the first time) it doesn't move, and the motor produces a tiny beep!

So if you could provide a detailed explanation about the use of RotationLimit, and if it's an alternative for the use of Encoders to track number of ticks ? so that it could be used to move or rotate the robot exactly.

Any clarification is totally appreciated
Thank youSmile

[808 byte] By [MohammedA.Aziz] at [2008-2-15]
# 1
The RotationLimit that you see in LegoNxtMotor.cs is Lego's built in hardware support for stopping the motor after a specified number of rotations. The only downside i have seen to this is that it only works with whole numbers of revolutions. For example, if you calculated that your motor needs to turn for 2.5 rotations, then you would be out of luck.

I don't know why the motor beeps. I have never seen that behavior.

Another solution is to use the generic DifferentialDrive service. this service lets you stop a motor after a certain number of encoder ticks. see this post for issues regarding encoder resolution:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1502483&SiteID=1

BenAxelrod at 2007-10-3 > top of Msdn Tech,Microsoft Robotics Studio,Microsoft Robotics - Hardware Configuration and Troubleshooting...

Microsoft Robotics Studio

Site Classified