How to get conditioned Euler angles, angular velocity, and linear acceleration from MetaBase output?
Hi. I am trying to use MMS to evaluate bowling throws. For that I need Euler angles and angular velocity to describe arm movement, and linear acceleration to detect steps.
I am getting sensor data from the MetaBase app. but it will not record all three sets of values. Euler angles preclude everything else.
I know it should be possible to get avelo and accel from the angles, but the math is over my head. I've not had much luck finding python libraries to do the job. Can anyone point me in the right direction or share code?
Comments
I got this figured out with considerable help from ChatGPT. Here's the code for anyone trying to do the same thing. For reasons I'm not sure about, for my test data this produces angles in the range -8564 to 10,306. I'm only using the result in plots so it doesn't really matter to me. If you wanted it in the range -360 to 360 you'd need to scale the angles.