首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 为和“9DOF Razor IMU姿态”

为和“9DOF Razor IMU姿态”

  • 资源大小:1.51 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 姿态

资 源 简 介

This is a Direction Cosine Matrix (DCM) based Attitude Heading Reference System (AHRS) with gyro drift correction based on accelerometer (gravity) vector and magnetometer (compass) vector. Hi all, We have a full working version of the Razor 9DOF IMU AHRS :-). It´s uploaded in the Google Code repository at right. I have included the code to read the I2C compass (HMC5843) and map the sensor axis and sensor signs (it was a little tricky...). I have implemented the "fusion" between the 3 axis magnetometer info with our actual 6 DOF IMU code. This was my approach: --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

文 件 列 表

IMU_Razor9DOF.py

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
1.006516s