View unanswered posts | View active topics It is currently Tue Sep 29, 2020 2:16 pm

Reply to topic  [ 2 posts ] 
simultaneous tasks? 
Author Message

Joined: Wed Nov 14, 2012 12:07 pm
Posts: 6
Post simultaneous tasks?
can anyone tell me why i can't get this servo to rotate and work with the program simultaneously? there is a motor to control marble drop (normal motor) then a servo to collect and allow the line reader to read and then dump into one of three cups that sits on a different servo for separation. file is attached.

NewFile_Template002.c [1.48 KiB]
Downloaded 363 times
Thu Jan 30, 2014 1:18 pm
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post Re: simultaneous tasks?
There is a bit more information we will need in order to help with this issue. What is the robot doing, and what would you like for it to do? Which servo is not doing what you would like for it to do, and where in the code does this problem arise? The more detailed information you can give us on this particular issue, the better we will be able to assist you.

Right off the bat, I do see one thing that may be causing issues:

setServo(servoPort, -120);//Spinner will allow one marble through

This moves the servo to position -120, but will give it 150 milliseconds to get there (0.150 seconds) before moving on the to the next command. This may not be enough time to have the motor moved to the position you want it to be in.

Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Thu Jan 30, 2014 3:01 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.