0

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!

kelly
  • 233
  • 1
  • 4
  • 6
  • Project is in node.js using serial to communicate with an arduino – kelly May 23 '12 at 23:14
  • The best resource I have found is Wolfram's [MathWorld](http://mathworld.wolfram.com/EulerAngles.html). You may need to develop some basic functions to handle matrices, but they're not that hard once you get into it. If you provide examples of input and what you've tried so far, you'll get more help. – RobG May 24 '12 at 02:26

1 Answers1

1

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.

Community
  • 1
  • 1
Ali
  • 56,466
  • 29
  • 168
  • 265