当前位置:网站首页>六轴传感器使用学习记录
六轴传感器使用学习记录
2022-07-25 19:25:00 【zterrorblade】
六轴包含加速度计和陀螺仪,输出三轴加速度和三轴角速度,如果是九轴还加上磁力计输出地球磁场相关数据用于算出设备当前确切欧拉角以得到设备姿态,否则只能得到相对旋转角度
QMI8658
https://blog.csdn.net/weixin_43924988/article/details/124056069
注意读取QMI8658六轴数据与真实加速度、角速度数据之间的转换
欧拉角、姿态角、四元数、转换矩阵
1)姿态角 pitch yaw roll
https://blog.csdn.net/yuzhongchun/article/details/22749521
2)欧拉角与姿态角
姿态角:指的是机体坐标系与地理坐标系的夹角。
欧拉角:绕机体坐标系三个轴旋转的角度。
关系:绕某种旋转顺序的欧拉角与姿态角相等。
(1)在NED(北东地)坐标系(地理坐标系)和前右下坐标系(机体坐标系)的定义中,只有按ZYX顺序旋转的欧拉角才是姿态角,即按偏航-俯仰-滚转(3-2-1)的旋转顺序。因而地理坐标系到机体坐标系的旋转矩阵即为:R(roll)*R(pitch)*R(yaw)(R(x)*R(y)*R(z)).
(2)在东北天坐标系(地理坐标系)和右前上坐标系(机体坐标系)的定义中,只有按ZXY顺序旋转的欧拉角才是姿态角,即按3-1-2的旋转顺序.因而地理坐标系到机体坐标系的旋转矩阵即为:R(y)*R(x)*R(z).
其他如气流坐标系与机体坐标系的旋转矩阵可类似得到。
**总结:**坐标系的定义与旋转矩阵是配套的,禁止混用!
3)四元数
讲解四元素的定义,各量与旋转角度、旋转向量之间的计算公式,即
这样做坐标变换时,便于计算且对3元数计算结果也是三元数,q共轭 坐标 q
https://www.zhihu.com/question/23005815/answer/33971127
4)四元数和欧拉角关系、相互转换
理解梳理:1.欧拉角的坐标转换矩阵:

2.四元数的坐标转换矩阵

3.四元数与欧拉角
参考维基百科[2]的思路,欧拉角构造四元数,跟欧拉角构造旋转矩阵一样,就是把三个基础旋转Elemental Rotation组合在一起,参考wiki

example,实例传感器,代码?
边栏推荐
- 鸿蒙-大喵计算画板-视频
- Wechat campus maintenance and repair application applet graduation design finished product of applet completion work (6) opening defense ppt
- [applet development] do you know about applet development?
- Based on easycv to reproduce Detr and dab-detr, the correct opening method of object query
- Wechat campus maintenance application applet graduation design finished product of applet completion work (8) graduation design thesis template
- Eve - 0day Threat Intelligence
- Openresty Lua resty mlcache multi-level cache
- Flutter tips: optimizing the buildcontext you use
- Telnet installation and telnet (correct password) cannot log in!
- The degree of interval of basic music theory
猜你喜欢

Youth, oh, youth

【刷题记录】21. 合并两个有序链表

How to change the chords after the tune of the song is changed

Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 1)

Huawei recruited "talented teenagers" twice this year; 5.4 million twitter account information was leaked, with a selling price of $30000; Google fired engineers who believed in AI consciousness | gee

英诚医院内部网络规划与设计

“未来杯”第二届知识图谱锦标赛正式启动

Empire CMS whole station | mobile number /qq lianghao mall source code | suitable for mobile terminal

Pymoo学习 (5):收敛性分析

聊聊sql优化的15个小技巧
随机推荐
微信小程序 28 热搜榜的完善①
Youfu network was invited to attend the 2022 national CIO conference and won the title of "CIO trusted brand"
[server data recovery] a data recovery case of a brand ProLiant server raid paralysis, database file loss, and database file backup damage
Internal network planning and design of Yingcheng hospital
Pymoo学习 (5):收敛性分析
Kcon 2022 highlights and agenda revealed!
[applet development] detailed explanation of host environment
Flutter 小技巧之优化你使用的 BuildContext
小程序毕设作品之微信校园维修报修小程序毕业设计成品(5)任务书
i3-status 配置
重磅!《几何深度学习》新书发布,帝国理工/DeepMind等图ML大牛共同撰写,160页pdf阐述几何DL基础原理和统一框架
Eve - 0day Threat Intelligence
Website construction of information exchange platform for China Africa South South cooperation based on PHP
JS learning notes 17: DOM query exercise
GBASE 8s UDR内存管理_01_mi_alloc
微信小程序 29 热搜榜的完善②
小程序毕设作品之微信校园维修报修小程序毕业设计成品(3)后台功能
ERROR: role “admin“ cannot be dropped because some objects depend on itDETAIL:
【DETR用于3D目标检测】DETR3D: 3D Object Detection from Multi-view Images via 3D-to-2D Queries
Swift 基础 Codable(JSONEncoder JSONDecoder)的使用