Maze Navigation
WipperXX
Posts: 2
Hello,
For our final paper we are·making a boe bot that can navigate trough a self made maze. However, we have run into some problems. Our strategy was to let the boe bot follow the right wall using the infrared sensors.·The problem is the boe bot wont·make a left turn, the turn it is about to make in the picture. We've also included our script.·Anyone got a suggestion how we can improve·our script / project ?· Thanks in advance
Script:
http://home.planet.nl/~door6048/16_december_script.doc
Maze: the robot wont make a 90 degree left turn right now, instead it makes steps
·
For our final paper we are·making a boe bot that can navigate trough a self made maze. However, we have run into some problems. Our strategy was to let the boe bot follow the right wall using the infrared sensors.·The problem is the boe bot wont·make a left turn, the turn it is about to make in the picture. We've also included our script.·Anyone got a suggestion how we can improve·our script / project ?· Thanks in advance
Script:
http://home.planet.nl/~door6048/16_december_script.doc
Maze: the robot wont make a 90 degree left turn right now, instead it makes steps
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Geen teen -1
-Your turn left function is odd. Logically, it should be the opposite of turn right.
-Your decision structure doesn't really do very well if both sensors detect an object. It will turn left, then turn right. You can fix this by making it an if - if else - else type statement.
-You may want to create some sort of wall following code for when it must go forward. Due to real world inaccuracies, I'm guessing that your robot drifts from the wall quite dramatically in some situations.