So try this out. But bewarned, I feel the PID control for the 12V motors is somewhere between useless and broken.I tried for weeks to get this to work and was never happy with it. It sometimes goes completely screwy. Be careful and test it out thoroughly before you rely on it. Also try at various battery levels.

And try not to set power levels > 75%.

If this doesn't work then you have to write the PID controller yourself or use some other control technique. Because the built in PID controller parameters can't be tuned.

Another suggestion...before you try to use the PID controller. Run the sample program "NXT Motor Consistency vs Time" its under Sample Programs/Motor directory. This will help you know that everything is working okay before pulling your hair out with the flaky PID stuff.

Fri Mar 06, 2009 2:02 pm

nender

Rookie

Joined: Wed Feb 25, 2009 7:00 pmPosts: 10

Re: Shaft Encoders

Thanks for the responses! It turned out that our problem was accidentally reading nMotorEndcoderTarget[leftMotor] rather than nMotorEncoder[leftMotor] . I hate typo programming errors.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum