I'm on to my next app, this one is to figure out how to use the accelerometer. The previous one (which was about InApp purchases) is with Lloyd and his kids for testing.
This new app is to measure how to fix tables that aren't balanced. In theory, I should be able to get the position of the iPhone in both the balanced and unbalanced states. Next theoretical step is to get the angle of difference between those two planes. Then, based on how far apart the legs are, I can figure out how much to raise a leg (ie, how thick do you need to fold the coaster to fix the table?)
I've got to the point where I've captured the two table positions. The next step is the math part. If I have it figured correctly, I'm trying to covert the iPhone's accelerometer coordinate system to Euler angles. I think. This is one of the few times in my life I've had to put my math degree to use.
This evening is our last Tuesday Ultimate game. It's at 11pm, so the team's going out before the game for dinner. I'm still out with my ankle / foot injury. We're heading to Bar Vespa, beside Brazen Head.
On Sunday Heather and I went to the new Scottish pub on Gerrard near Jones (McGuggan's). We had tried their food a couple times, and it's been pretty good, except almost all of it is deep-fried, or a salad. There's no real in-between choices. On Sundays, however, we figured they'd have a roast beef special (it must be a law for pubs). It was really enjoyable, the yorkshire pudding was one of the better ones I've had.
Unfortunately, the kids are not doing a good job of beta-testing.
ReplyDeleteHow do you figure out how far apart the legs are? Do you put the iPhone on top of one leg, push a button (ie. get the location), then put it on top of the diagonal leg and push a button?
ReplyDeleteThe user has to enter the approximate distance for the legs. It turns out that the margin of error is enough to make the app only useful for entertainment, and not practical. So the distance of the legs isn't that crucial. Also, with just an accelerometer and gyroscope, you can't measure distance very accurately.
ReplyDelete