Hi all.
I am in the process of trying to get my first robot to work. For the most part, I have based my robot on the protobot with a few modifications for a “scoop”. To add additional strength/torque, I have added an additional motor to the arm. I just plan on picking my some styrofoam peanuts and dropping them somewhere.
I have used the line tracker code almost ver batim that was posted here: https://vexforum.com/local_links.php?action=ratelink&linkid=56
I made a slight mod to where all 3 light sensors see all black. This is where I would like the scoop to drop down until it hits the limit switch, move forward a bit to pick up the material, raise up, etc. Before adding my scoop function, I made sure my line tracker code worked. It works perfect! In fact, here it is on YouTube: http://www.youtube.com/watch?v=y7WJqXFo7fw
The problem is that when I uncomment the scoop() function, the first time it sees black, the arm drops, but the motors for the wheels begin to just crawl. I can also hear the microprocessor “working” but it just stops. Almost as if it is in an infinite loop of some sort. I am attaching my code.
Any assistance would be greatly appreciated!
Many thanks!
Sokkerpunk (yeah, I like soccer )
LineNavigationRobot.zip (3.97 KB)