Conversation
|
Thank you for your contribution. Can you explain where you got your formulas for calculating pitch and roll? Do you assume that the -Y axis is the "front" and the +Z axis is the "top"? This seems to produce results that make the most sense, although it seems like the angles might be reversed from what I understand to be the convention: according to this Wikipedia article, "The most common aeronautical convention defines the roll as acting about the longitudinal axis, positive with the starboard (right) wing down. The yaw is about the vertical body axis, positive with the nose to starboard. Pitch is about an axis perpendicular to the longitudinal plane of symmetry, positive nose up." (Though no source is cited, so I don't know if that's right or not.) Do you have a reason for picking the convention you did? |
|
Hello, |
|
Hi, I found an issue when using the function 'getDeviceType' , the result of determined device type was wrong. I was using LSM303DLH, but the result returned was DLHC. So the acc address was wrong. |
|
Hi, I have a version of your compass heading working just fine on my arduino, how to I get to pitch and roll? |
Hello, I added two methods for the calculation of pitch and poll, which are commonly used with heading.