ROBOTC.net forums
http://robotc.net/forums/

Need Help With Program
http://robotc.net/forums/viewtopic.php?f=11&t=7416
Page 1 of 1

Author:  Doug [ Fri Dec 06, 2013 5:31 pm ]
Post subject:  Need Help With Program

I'm creating a program for a four motor robot, that needs to follow a square shaped path without lines to guide it. How should I go about this? I've already attempted simply timing the straightaways and turns, but the numbers are finicky, and the robot doesn't respond accurately every time. It has to trade off sweep turns and point turns, and go along the path indefinitely. Any help is greatly appreciated.

Author:  Ernest3.14 [ Fri Dec 06, 2013 11:50 pm ]
Post subject:  Re: Need Help With Program

Have you tried encoders/do you have access to them/are they allowed?

Author:  Doug [ Sat Dec 07, 2013 12:50 pm ]
Post subject:  Re: Need Help With Program

Encoders are allowed, yes.

Author:  Ernest3.14 [ Sat Dec 07, 2013 11:33 pm ]
Post subject:  Re: Need Help With Program

Put encoders on the motors. Then, instead of timing the straightaways and turns, simply wait until the encoders reach a certain value. Of course, one motor still might spin faster than another, but this is generally more accurate than just using timers.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/