Hacker News new | ask | show | jobs
by mattegan 4368 days ago
The integration of acceleration is velocity, integrate again and you have position.
1 comments

You have that annoying +C though, so you need an initial velocity. While you can just shove 0 in there, it would still not be 100% accurate, and you'd want it to reset when no acceleration is detected for a period of time.

So while I'm sure you could make it work convincingly, it still wouldn't work as well as a proper rollerball or optical sensor.