Логика обработки данных иму реализована как в рабочей прошивке. Дополнены функции вектора

This commit is contained in:
2026-03-26 18:01:04 +03:00
parent b95a716415
commit b6945b83f4
4 changed files with 183 additions and 34 deletions

View File

@@ -9,15 +9,21 @@
typedef struct
{
Quaternion q; // ориентация
Vector3 gyro; // deg/s
Vector3 accel; // g
Quaternion q; // ориентация
Vector3 oriPRT; // orientation pitch roll tilts
Vector3 gyro; // deg/s
Vector3 accel; // g
Quaternion shiftAccelPRY; // смещение акселерометра
} IRS;
void IRS_init(IRS* irs);
void IRS_update(IRS* irs, const Vector3* gyro, const Vector3* accel, float dt);
void restoreQuat(IRS* irs, const Vector3* accel);
void setAccelShift(IRS* irs, const float pitch, const float roll, const float yaw);
Vector3 IRS_getGravity(const Quaternion* q);