View unanswered posts | View active topics It is currently Wed Dec 17, 2014 7:43 pm






Reply to topic  [ 4 posts ] 
Need Help With Program 
Author Message
Rookie

Joined: Fri Dec 06, 2013 5:24 pm
Posts: 2
Post 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.


Fri Dec 06, 2013 5:31 pm
Profile
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post Re: Need Help With Program
Have you tried encoders/do you have access to them/are they allowed?

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!


Fri Dec 06, 2013 11:50 pm
Profile
Rookie

Joined: Fri Dec 06, 2013 5:24 pm
Posts: 2
Post Re: Need Help With Program
Encoders are allowed, yes.


Sat Dec 07, 2013 12:50 pm
Profile
Professor
User avatar

Joined: Sat May 18, 2013 1:24 pm
Posts: 272
Location: Olympia, WA
Post 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.

_________________
FTC Team 6424, the 'Oly Cow - Chief programmer.
FRC Team 4450, Olympia Robotics Federation (ORF).

and also quadrotors. Quadrotors!


Sat Dec 07, 2013 11:33 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.