| 30 | |
| 31 | == 7/5/07 - day 23 == |
| 32 | |
| 33 | We are under way coding our ultimate solution to the access point problem. The first thing we've begun to do is assemble different python modules for different purposes, keeping the main code clean and readable. We have a module that handles the data, a module tha handles plotting, and a module that takes care of statistical analysis. |
| 34 | |
| 35 | |
| 36 | == 7/6/07 - day 24 == |
| 37 | |
| 38 | The data we are gathering is very reluctant to fit the shapes we are trying to fit. The once-considered-reliable algorithm "bigtri.py" is producing erratic and inconsistant results. Using a least squares method to fit the data to a cone shape is frustratingly innacurate. |
| 39 | |
| 40 | I've written some code, "snake.py", which snakes along a hallway taking measurements. The computer is connected to a LinkSys router at the other end of the hall. I tried fitting the data to a cone with known slope and z-value at the apex. The leastsq procedure was trying to solve for the x,y location of the cone's apex (the Access Point), and the result was far from accurate. I plotted the gathered data against the expected cone in matlab only to find that the data contained distinctly higher values than the cone I was hoping it would fit to. |
| 41 | |
| 42 | The cone I was hoping to fit was the equation: z = a * sqrt((x-x0)^2+(y-y0)^2) + z0, where a is the cone slope and (x0,y0,z0) is the location of the apex. In my test run, with all of a,x0,y0,z0 known, all of the experimental data had much higher z values than the anticipated cone. To compensate, I raised the z0 value from 26.17 to 40, which looked like a much more appropriate fit. However, the leastsquares method still fails to locate the apex of this cone. |
| 43 | |
| 44 | In order to determine the shape, we had one robot wander around orbit (we had some grid time today) taking measurements. The data is difficult to interpret, but I have begun to do some preliminary curve fitting to it. My hope is to be able to crack the code and be able to reliably identify the location of the access point from a random sampling of the large set of data. So far the prospects are dim - the data is very noisy. |
| 45 | |