Thursday, May 15, 2008

Day 4 - Alex's Journal

Today I helped program what is called a circular buffer. The way the Guitar Hero bot will work is by taking input from the sensors and then waiting a short amount of time (approximately half a second) and then sending a signal telling the guitar that the buttons are being pressed. In order to accomplish this a circular buffer is needed. A circular buffer is a programming concept where a list of data is stored into an array one space at a time. When it reaches the end of the array it loops around and overwrites the data at the beginning of the array. This allows for unlimited input of data while only using up a limited amount of space. Unfortunately, there are still issues with the circular buffer and it is not yet working.