Code Monkey home page Code Monkey logo

zterrorblade / pose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dicetz/pose

0.0 0.0 0.0 9 KB

这是一个用C语言编写的九轴姿态解算算法模块。模块对算法进行封装,可通过接入九轴或六轴(可屏蔽磁力计)信息(注:要求九轴信息满足右手坐标系),模块可以内部解算出无人机的姿态角。除此之外,还对外提供四元数、旋转矩阵、世界加速度、水平加速度等信息,特别适用于无人机等平衡系统的开发中。

C 100.00%

pose's Introduction

Pose

这是一个用C语言编写的九轴姿态解算算法模块。模块对算法进行封装,可通过接入九轴或六轴(可屏蔽磁力计)信息(注:要求九轴信息满足右手坐标系),模块可以内部解算出无人机的姿态角。除此之外,还对外提供四元数、旋转矩阵、世界加速度、水平加速度等信息,特别适用于无人机等平衡系统的开发中。

1、姿态角解算不正常,常出现解算角抖动的情况: 可能是传入的九轴信息未对准或不满足右手坐标系,以无人机距离,定义机头方向为x轴,天空方向为z轴,则机头的左侧为y轴; 加速度方向: 无人机往前,加速度x轴为正; 无人机往左,加速度y轴为正; 无人机往上,加速度z轴应大于-980cm/s^2,例如-900cm/s^2 陀螺仪方向: 无人机以机头为轴,右侧翻滚w为正 无人机以机头左侧为轴,向下俯w为正 无人机以天空为轴,逆时针w为正

2、解算的加速度和角速度有问题: 可能是传入数据的单位不正确,加速度单位为cm/s^2,角速度单位为°/s;

3、姿态解算的yaw角颤抖得厉害; 如果有磁力计,可能是磁力计输入数据得方向有问题或磁力计数据有尖峰脉冲产生。 如果没有磁力计,可以查看是否是加速度误差的补偿系数kp太大。

pose's People

Contributors

dicetz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.