LSM9DS0 icon indicating copy to clipboard operation
LSM9DS0 copied to clipboard

About Orientation

Open Bobur-kobilov opened this issue 7 years ago • 4 comments

Hi Kris, Thank you a lot for the source code!

I implemented Madgwick source code with LSM9DS0 and the data that I get are really good but I have a problem with aligning the sensor orientation with global orientation. For instance, for visualization, I sent quaternion data to unity 3d and when I move the sensor in pitch direction, in the unity character is moving in yaw direction. Please could you help how to feed quaternion values to 3d character

Bobur-kobilov avatar Nov 27 '17 12:11 Bobur-kobilov

Well, you need to figure out which direction is North in unity 3d and then choose the sensor order accordingly into the Madwick filter.

On Mon, Nov 27, 2017 at 4:14 AM, Bobur-kobilov [email protected] wrote:

Hi Kris, Thank you a lot for the source code!

I implemented Madgwick source code with LSM9DS0 and the data that I get are really good but I have a problem with aligning the sensor orientation with global orientation. For instance, for visualization, I sent quaternion data to unity 3d and when I move the sensor in pitch direction, in the unity character is moving in yaw direction. Please could you help how to feed quaternion values to 3d character

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/LSM9DS0/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qgstp8kjX2shQZaeiO0xcgSWIbECks5s6qfCgaJpZM4Qri_j .

kriswiner avatar Nov 27 '17 17:11 kriswiner

Hi Kris, Thank you for you reply! I have been wondering how I can calibrate LSMD90 IMU magnetometer

Bobur-kobilov avatar Nov 29 '17 05:11 Bobur-kobilov

https://github.com/kriswiner/LSM9DS0/blob/master/Teensy3.1/MiniShield/LSM9DS0_MS5611_BasicAHRS_t3.ino

On Tue, Nov 28, 2017 at 9:26 PM, Bobur-kobilov [email protected] wrote:

Hi Kris, Thank you for you reply! I have been wondering how I can calibrate LSMD90 IMU magnetometer

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/LSM9DS0/issues/14#issuecomment-347756816, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qvrAt90ZX4HLtyRtOBHuPZwDormYks5s7OrvgaJpZM4Qri_j .

kriswiner avatar Nov 29 '17 06:11 kriswiner

Thank you kris! I implemented and calibration is working well! I have a question about beta value! If you can help me figure out, it would be appreciated!

  1. What is the function of beta value?
  2. For each sensor, do I have to tweak beta value to eliminate drift?

Bobur-kobilov avatar Nov 30 '17 11:11 Bobur-kobilov