Multi-dimensional arrays??
wired_al
Posts: 2
I am attempting to give my boe-bot a memory of the floor and where objects are so I can send him a location via a wireless transponder and have him navigate there without running into a wall and then on my screen it will draw a map of the memory and update whenever the bot finds a wall or other object.
In order to accomplish this I need to know if the latest version of P-Basic supports multi-dimensional arrays. I only need a two-dimensional array to map out the floor. From what I have read, it does not, which is sad because most programming languages do. Is this a feature that is hidden? Or will it be released soon? I have a competition coming up in October so it would be nice to know this soon.
Thanks
wired_al
In order to accomplish this I need to know if the latest version of P-Basic supports multi-dimensional arrays. I only need a two-dimensional array to map out the floor. From what I have read, it does not, which is sad because most programming languages do. Is this a feature that is hidden? Or will it be released soon? I have a competition coming up in October so it would be nice to know this soon.
Thanks
wired_al
Comments
Thanks for your help....
You can use EEPROM to store a map of an area using READ, WRITE, and DATA statements. You have to be very careful about writing to EEPROM though. A given location in EEPROM can only be written about 100,000 times. That may seem like a lot, but it's very easy to exceed that in a few hours if there's a program bug or if a program is written badly. Usually when people create a navigation map they store it in the EEPROM.
But good luck, and please keep asking questions and keep us updated!