Penguin Search and Rescue
I am in a marine search and rescue outfit and I would like to program my penguin to perform an "expanding box" type search and rescue technique. He would start from the "missing persons" last seen point and go North 2 steps then turn East for 2 steps then South for 3 steps then West for 3 then back North for 4 etc in an ever-expanding box shape. If he detects an object he plays a happy song. I need to have some way of incrementing his step number without writing every line of code as he may have to do hundreds of steps before he finds the "missing person". I also need to have him increment his direction by 90 degrees each leg of the search pattern. Is this all asking too much of the little fellow? Could someone point me in a direction to start( ha ha don't be a smart alec). Thanks.
Comments
How do you plan to detect the object?
Feel free to ask for ideas, post your code, or a video.
Perhaps. Penguins are nifty robots, but I don't know if they're accurate enough to track straight, measure distance and turn precisely 90 degrees as required by your spiral search pattern. An S2 is easily up to the task, although its red color isn't too aquatic.