Society of Robots - Robot Forum

Software => Software => Topic started by: Elimathew on August 10, 2012, 10:18:16 AM

Title: A little help
Post by: Elimathew on August 10, 2012, 10:18:16 AM
hey guys i building a basic line follower for this particular track 
http://www.techfest.org/img/competitions/techolympics/gridmaster/zonal2_l.jpg (http://www.techfest.org/img/competitions/techolympics/gridmaster/zonal2_l.jpg)
the robot should pass particular set of coordinates which is not fixed and is needed to be entered just before each run. i would appreciate some basic ideas regarding coding this robot .im using 8052 microcontroller keil compiler
Title: Re: A little help
Post by: greywanderer012345 on August 23, 2012, 07:45:34 AM
What sensors are you able to use?

Do you have to use the method of inputting coordinates? I would approach it with turns, rather than coordinates.

//Pseudocode
If(Turn is Possible)
   turnDirection(turns[nextTurn++]);

Then, put 3 buttons for direction. For the example maze it would be turns[]={L,L,R,L,S,S,L,L}