Society of Robots - Robot Forum

Software => Software => Topic started by: benjammin105 on March 31, 2010, 09:07:57 PM

Title: Timing issues
Post by: benjammin105 on March 31, 2010, 09:07:57 PM
I've reached a point in the robot programming where I want my upper gripper servo to come down and grip an object and the lower gripper arm to scoop the object, then it is supposed to drive away. However, right now it is gripping it twice and while driving. The robot is also moving the gripper while driving. I was wondering how can I tell the robot to only scoop the object once and to not grip when the next command happens. I want one each part to move one at a time and not continue while the robot does something else. any ideas?
Title: Re: Timing issues
Post by: richiereynolds on April 01, 2010, 04:25:18 AM
drive()
stop()
grip()
scoop()
letGo()
drive()
???

Think we'd need to see some code to help you really. How are you driving? PWM?