OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2961|回复: 4

MPU6050小板安装方式为竖直安装不采用平方安装,怎么进行姿态结算

[复制链接]

7

主题

41

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
366
金钱
366
注册时间
2017-4-11
在线时间
33 小时
发表于 2020-3-13 11:24:00 | 显示全部楼层 |阅读模式
30金钱
有mpu6050芯片的板子安装方式由于条件限制不能再是平方安装,要改为竖直安装。那么相应的初始化方式和姿态解算要怎么改变?我把MPU6050的初始化orientaion 映射也改了,还是不行。来这里询问下,有没有这种条件的MPU6050处理方式。
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

7

主题

41

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
366
金钱
366
注册时间
2017-4-11
在线时间
33 小时
 楼主| 发表于 2020-3-13 11:24:01 | 显示全部楼层

  1. /* The sensors can be mounted onto the board in any orientation. The mounting
  2. * matrix seen below tells the MPL how to rotate the raw data from the
  3. * driver(s).
  4. * TODO: The following matrices refer to the configuration on internal test
  5. * boards at Invensense. If needed, please modify the matrices to match the
  6. * chip-to-body matrix for your particular set up.
  7. */
  8. static struct platform_data_s gyro_pdata = {
  9.     .orientation = { 1, 0, 0,
  10.                      0, 1, 0,
  11.                      0, 0, 1}
  12. };
复制代码
回复

使用道具 举报

109

主题

5564

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
10569
金钱
10569
注册时间
2017-2-18
在线时间
1913 小时
发表于 2020-3-13 12:31:47 | 显示全部楼层
帮顶~~
回复

使用道具 举报

7

主题

41

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
366
金钱
366
注册时间
2017-4-11
在线时间
33 小时
 楼主| 发表于 2020-3-13 15:07:15 | 显示全部楼层

顶!顶!
回复

使用道具 举报

7

主题

41

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
366
金钱
366
注册时间
2017-4-11
在线时间
33 小时
 楼主| 发表于 2020-3-14 16:28:36 | 显示全部楼层
/* The sensors can be mounted onto the board in any orientation. The mounting
* matrix seen below tells the MPL how to rotate the raw data from the
* driver(s).
* TODO: The following matrices refer to the configuration on internal test
* boards at Invensense. If needed, please modify the matrices to match the
* chip-to-body matrix for your particular set up.
*/
static struct platform_data_s gyro_pdata = {
    .orientation = { 1, 0, 0,
                     0, 1, 0,
                     0, 0, 1}
};
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-5-22 10:32

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表