I have some accelerometers hanging from strings. I would like to be able to compute the position of the string from the accelerometer reading.
What I think I need to do is:
- Compute a transform from the accelerometer at rest in order to normalize my sensor. I will have gravity so I should be able to know where the z-axis is.
- Move the string in a known direction to set x and y.
- Read the sensor and apply the transform to factor out the steady-state reading.
- Subtract out the effect of gravity.
- Integrate to get a position.
Is the integration necessary for position? I know that one side is fixed. I should be able to use the magnitude of gravity to determine where the string is if the string is held at a position with some trigonometry, right?
I realize that this a solved problem, but I'm not sure what it falls into. There are some transforms between coordinate systems, robotics, and also probably some physics.