UAS/Notes/IMU: Difference between revisions
Jump to navigation
Jump to search
(Created page with '= Inertial Measurement Unit (IMU) = The IMU was are going to create will consist of an 3 axis acceleration, a 3axis gyroscope, a 3 axis magnetometer, and a barometer. These comb…') |
No edit summary |
||
Line 7: | Line 7: | ||
some algorithum i found | some algorithum i found | ||
*Read the 3 axis magnetometer data | |||
* Calculate the "tilt compensated" x and y magnetic component (standard formulation): | |||
** CMx = mag_x*cos(pitch) + mag_y*sin(roll)sin(pitch) + mag_z*cos(roll)sin(pitch) CMy = mag_y*cos(roll) - mag_z*sin(roll) | |||
* Calculate the magnetic heading with this compensated components: | |||
** MAG_Heading = Atan(CMy/CMx) | |||
MAG_Heading = Atan(CMy/CMx) |
Revision as of 23:36, 12 September 2011
Inertial Measurement Unit (IMU)
The IMU was are going to create will consist of an 3 axis acceleration, a 3axis gyroscope, a 3 axis magnetometer, and a barometer. These combined will give us 10 degrees of freedom.
some algorithum i found
- Read the 3 axis magnetometer data
- Calculate the "tilt compensated" x and y magnetic component (standard formulation):
- CMx = mag_x*cos(pitch) + mag_y*sin(roll)sin(pitch) + mag_z*cos(roll)sin(pitch) CMy = mag_y*cos(roll) - mag_z*sin(roll)
- Calculate the magnetic heading with this compensated components:
- MAG_Heading = Atan(CMy/CMx)