I am trying to build pitch, roll and yaw from sensor readings of a 9 degree of freedom sensing device. The data look like that (in a .csv file):
TIME,ACC_X,ACC_Y,ACC_Z,GYRO_X,GYRO_Y,GYRO_Z,MAG_X,MAG_Y,MAG_Z 2313992204,-1.694118,-2.053042,-8.886943,0.006272,-0.004091,0.000682,-48.200001,-68.400002,13.000000 2313992204,-1.674976,-2.029114,-8.886943,0.006545,-0.003682,0.000682,-48.500000,-67.599998,11.300000 2313992204,-1.674976,-2.033899,-8.882157,0.006136,-0.004091,0.000273,-47.799999,-67.500000,12.300000 2313992204,-1.703690,-2.033899,-8.882157,0.006818,-0.003682,0.000409,-47.700001,-68.099998,11.800000 2313992204,-1.694118,-2.053042,-8.877372,0.006409,-0.004500,0.000682,-47.900002,-67.400002,11.200000
I am not familiar with building this measures from these data and also I am not familiar with quaternions. This question is the only thing I have found to be related to mine questions (Calculating pitch, yaw, and roll from mag, acc, and gyro data), however, it is not using all the axis. Ideally, I want to build this vector and be able to visualize them in 3D (like cube animation that is made live from 9dof sensors and Arduino). Moreover, I want to be able to compute the heading from this data.
Can anyone help me, I have all my pipeline in python so it would be helpful to have advice on how to do that with python?