this my project for solving the maze in first test the robot will learn the maze the second time will take less time because it save the true wayany advice from u because i have the problem but i don't know where the sonar sensor i but it on the robot in the left side i use left hand algorithm

motor[mb] = -60; //motor A is run at a -75 power level motor[mc] = -60; wait1Msec(300); motor[mb] = +60; //motor A is run at a -75 power level motor[mc] = -60; //motor B is run at a -75 power level wait1Msec(1000); //the program waits 1000 milliseconds before running further codeif(sensorvalue(color)==1) break;filteration();

}}

Mon Jul 09, 2012 5:45 am

fahd

Rookie

Joined: Tue Jun 05, 2012 2:31 pmPosts: 11

Re: project for solving maze

project for solving mazethis my project for solving the maze in first test the robot will learn the maze the second time will take less time because it save the true wayany advice from u because i have the problem but i don't know where the sonar sensor i but it on the robot in the left side i use left hand algorithm

motor[mb] = -60; //motor A is run at a -75 power levelmotor[mc] = -60;wait1Msec(300);motor[mb] = +60; //motor A is run at a -75 power levelmotor[mc] = -60; //motor B is run at a -75 power levelwait1Msec(1000); //the program waits 1000 milliseconds before running further codeif(sensorvalue(color)==1)break;filteration();

look at the file MazeSolve1.cs. the basics for a line maze solving robot is there, in a fairly compact and (hopefully) readable format. Don't let the fact that it is c# bother you. The maze solving code part is (intentionally) simple non oop code.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum