Professional Documents
Culture Documents
BY:-
IR SENSOR
- Sensors are the most critical of all the systems. The accuracy
of the micro mouse relies on the quality of sensors.
mark[mmc_x][mmx_y]=1………
maze_entry(mmc_x,mmc_y,mmc_dir,front_open)
As explore called recursively ,upon termination of this call micromouse will return to the
previous square.
if(front_open&& unmarked(mmc_y,mmc_x,old_dir))
{ go_to(old_dir); * go 1 forward*
explore(); * call recursive*
go_to(old_dir+2); *go 1 back*
}
We defined direction as left, right , front so we need three recursive call.
After exploring whole maze micromouse will return to starting square
DISTANCE CALCULATION
AIM TO FIND MINIMUM DISTANCE OF EACH MAZE SQUARE FROM STARTING PONT:-