Skip to content

fix:倒置云台底座时云台漂移问题#1

Open
qzasa wants to merge 1 commit into
Liu-Curiousity:masterfrom
qzasa:master
Open

fix:倒置云台底座时云台漂移问题#1
qzasa wants to merge 1 commit into
Liu-Curiousity:masterfrom
qzasa:master

Conversation

@qzasa
Copy link
Copy Markdown

@qzasa qzasa commented Jan 31, 2026

主要是由于AHRS算法预设了重力方向为z轴正方向,
MahonyAHRS.h->update()->
// Estimated direction of gravity and vector perpendicular to magnetic flux
halfvx = q[1] * q[3] - q[0] * q[2];
halfvy = q[0] * q[1] + q[2] * q[3];
halfvz = q[0] * q[0] - 0.5f + q[3] * q[3];
是通过预设重力方向[0,0,1]计算出的公式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant