BASIC Question
I was considering writting a program for the basic stamp that would allow a robot to map out a room. It would use a 2-D array to map the room (the size of the room would need to be entered, and it could only be a rectangular room). I was just wondering if BASIC supports arrays, thanks
Comments
The PBASIC Stamp has limited support for one dimensional arrays, but the bigger problem is the limited amount of RAM available. Each Stamp only has 26 bytes of RAM available, which is a maximum of 2 x 13 or (roughly) 5 x 5 in terms of mapping. Once that has been "used", it's necessary to dump it to external storage, so that same area can be used again.
With the average room being 9 x 12 (or larger) I think the impractability exposes itself rather quickly. A mini-computer (80x86, 68xxx, etc) with more user RAM available, would provide a much better platform than a micro-controller, for the purposes of mapping.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
http://www.parallax.com/detail.asp?product_id=604-00020
James
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com