Rotating acceleration data into horizontal plane
Hello,
I've been using a 6 axis MetaWear RG situated on the back of a horse to stream acceleration data at 200Hz and gyro at 50Hz. Using this data I've been able to design an Android app capable of distinguishing between different gaits (e.g., trot, gallop, etc) as well as providing real-time analysis of the particular gait. My device is of course reporting the accelerations in the reference frame of the board but despite this I have been able to get some really useful results.
Being attached to the horse's back the board is rotating quite a lot sometimes 8-10 oscillations per second but never beyond say 45 degrees in X or Y. Also, it is common for the device to shift away from the initial alignment during riding and so the X and Y samples start to pick up a gravity bias. This rotation means that my acceleration data contains a fair bit of distortion and I am seeing patterns in the acceleration that are mainly just patterns of rotation (interesting in themselves but not what I want here).
To get further I really need some way of knowing the absolute orientation of the board at any given moment and then rotating the measured acceleration vector into the horizontal reference frame of the horse. By which I mean, Z axis defined by gravity and the X axis defined by the longitudinal axis of the horse's body (which basically aligns with the x axis of the board due to how it is mounted).
To get to the point my questions are:
1. Will a board with sensor fusion give me the information I need to rotate/transform the acceleration vector into the reference frame described above?
2. If so, can you use on-board processing to rotate/transform the acceleration values into the required reference frame before streaming rather than having to do it on the phone?
3. What sampling rate(s) can I use for quaternions or Euler angles?
4. If the answer to 2 is 'yes' could I stream rotated acceleration samples still at 200 Hz?
Many thanks for any assistance
Torben
This discussion has been closed.
Comments