|why wont my line tracking code work?
|Page 1 of 1|
|Author:||themigthy [ Fri May 11, 2012 7:57 pm ]|
|Post subject:||why wont my line tracking code work?|
I installed this code to my robot for my autonomous program i want it to turn then go forward and then follow a black strip of tape.
the robot turns and moves towards the black line but the sensors wont follow the black line, and the sensors are right on the line. its like the program ends as soon as the robot moves forward. Magiccode if you reed this i am sorry if the code is not organized, i didnt get how you told me to do it.
|Author:||magicode [ Fri May 11, 2012 8:11 pm ]|
|Post subject:||Re: why wont my line tracking code work?|
Just press edit on your post, and take a look at the "code" tags that are around the code. Also, make sure that you're copying your whole program, as I see a missed curly bracket. As for your program, try to step through your program like the microcontroller would, seeing when each condition is met. Here's some pseudocode for what it's doing assuming the missed curly bracket goes at the end:
Unless you keep button pushed down through the entire program, it will only go forward an turn.
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group