kriswiner / LSM9DS0

LSM9DS0 9DOF sensor AHRS sketch
39 stars 16 forks source link

Yaw angle calculation about z-axis. #15

Open paresh3108 opened 5 years ago

paresh3108 commented 5 years ago

Hi Kris Personally i really found this code very useful for calibration and consequently to obtain the values. However, I need your help in finding yaw angle about z-axis. In your code, it seems to be specified about x-axis. Can you please help me out? Also do you have any good links to understand the relation between Eulerian and Quaternions angles.

kriswiner commented 5 years ago

Google "euler angles from quaternions", lots of links there.

The Yaw is typically defined as rotation about the z-axis so I don't quite understand what you are asking for.

On Mon, Nov 11, 2019 at 7:26 AM paresh3108 notifications@github.com wrote:

Hi Kris Personally i really found this code very useful for calibration and consequently to obtain the values. However, I need your help in finding yaw angle about z-axis. In your code, it seems to be specified about x-axis. Can you please help me out? Also do you have any good links to understand the relation between Eulerian and Quaternions angles.

— 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/15?email_source=notifications&email_token=ABTDLKSGHZIBILJIPOXNIFTQTF2Q3A5CNFSM4JLXA522YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HYOHVDQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKS6P5J7XHT2PUIUMMLQTF2Q3ANCNFSM4JLXA52Q .

paresh3108 commented 5 years ago

Thanks Kris for your reply, But I mentioned it like that because in your code you said that: Yaw is the angle between Sensor x-axis and Earth magnetic North and I want you to find angle about z axis, I hope you are getting my problem now.

kriswiner commented 5 years ago

Yaw is angle made between x-axis and true North, changes in yaw so defines are rotations about the z-axis. So I still do not understand your question.

On Mon, Nov 11, 2019 at 11:08 AM paresh3108 notifications@github.com wrote:

Thanks Kris for your reply, But I mentioned it like that because in your code you said that: Yaw is the angle between Sensor x-axis and Earth magnetic North and I want you to find angle about z axis, I hope you are getting my problem now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/LSM9DS0/issues/15?email_source=notifications&email_token=ABTDLKUKCL3ALKYGQD2Z4J3QTGUSPA5CNFSM4JLXA522YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDXZP3Y#issuecomment-552572911, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKRGI25XSDF4E4YSXRTQTGUSPANCNFSM4JLXA52Q .

paresh3108 commented 5 years ago

Thanks, No Problem Anyways I got my solution after some edits