add imu deadbands to prevent 0piao

This commit is contained in:
2026-02-11 00:27:51 +08:00
parent 4ec7340bc4
commit 55d36d3812
3 changed files with 89 additions and 18 deletions

View File

@@ -45,6 +45,12 @@ typedef struct
float AccelLPF; // 加速度低通滤波系数
// 死区滤波参数 - 用于处理零漂
float GyroDeadZone[3]; // 陀螺仪死区阈值
float AccelDeadZone[3]; // 加速度计死区阈值
float GyroRaw[3]; // 原始陀螺仪数据
float AccelRaw[3]; // 原始加速度计数据
// bodyframe在绝对系的向量表示
float xn[3];
float yn[3];
@@ -140,4 +146,4 @@ void BodyFrameToEarthFrame(const float *vecBF, float *vecEF, float *q);
*/
void EarthFrameToBodyFrame(const float *vecEF, float *vecBF, float *q);
#endif
#endif