I'm looking to compute euler angles based on analog sensor data in javascript. The sensor data includes gyro, accelerometer, and magnetometer data in 3d. The math is a little over my head, and looking for any help or tips.
Thanks!
I'm looking to compute euler angles based on analog sensor data in javascript. The sensor data includes gyro, accelerometer, and magnetometer data in 3d. The math is a little over my head, and looking for any help or tips.
Thanks!
It is not clear what you are asking for. Is it sensor fusion that you are trying to implement? Or you already have it and you want to get Euler angles from the orientation (rotation matrix or quaternion)?
I have implemented sensor fusion for Shimmer 2 devices based on this manuscript. I highly recommend it.
Euler angles are evil, don't use them. They mess up the stability of your application and they cannot be used for interpolation.
JavaScript seems a little odd choice for this type of task.