04-18-2007, 08:27 AM
· Maybe someone with more electrical/boe bot knowledge can help on this?!?
· The problem Im facing is object detection, and the possibility of reversing a program.
· Is it possible to run some sort of object detection, such as whiskers, make the bot stop, and reverse the entire program with the different subroutines, without using time delays. Maybe using some sort of automatic switch, that will just reverse the pulsout numbers to make the forward direction be backwards, and do the entire program again following white tape.·
04-18-2007, 08:50 AM
By the nature of your question, I am guessing you are not an experienced programmer.
You have asked a good question. Wouldn't it be neat to be able to do exactly what you suggest? But, there is no way to put a program in "reverse." (Although that might be a great project in and of itself!)
The way I would approach your desired result is have the Stamp record each move, no matter how small. Then, when it was determined that you were "off track", simply follow those moves in reverse until you were back "on track." However, the Stamp--no matter which version you use--has NOWHERE near enough inherent memory capacity of any kind to do such a thing.
There might be an answer in using external communications to a PC that recorded each and every tiny move the Stamp sent it (like Parallax's own Bluetooth eb500 module, which I also have but have not yet used), or in using one of the several data logging devices available for the Stamp. I use the SD Data Logger, because the guy that sells it supports it on this forum. (Do a search for his URL.) His product is easy to use and will let you store up to 32Mb. That should be enough for a foot or two of going off on the wrong foot, so to speak.
There are more answers to your problem than Carter has peanuts, but I would record the last n number of motions and when I detected an error, look at the table in which I recorded them and follow it in reverse. Of course, this assumes a lot of stuff, like no wheel slippage, etc. But, it is a start. Maybe it will give you something to think about.
You are what you write.
04-21-2007, 02:38 AM
tcon3 (http://forums.parallax.com/member.php?u=49412)·has an interesting question. Does anyone have any Stamp-only ideas for him?
You are what you write.