M5StickC icon indicating copy to clipboard operation
M5StickC copied to clipboard

Need IMU Offset calibration

Open Menginventor opened this issue 5 years ago • 4 comments

I use MPU6886 and I need to read/write acc/gyro offset value for calibrating IMU. please add these feature to your library. regard

Menginventor avatar Nov 19 '20 19:11 Menginventor

Also, I have a favor. After execute function "M5.IMU.getAhrsData(&pitch,&roll,&yaw)", I can get about pitch:3, roll:10, yaw:random. I want to offset this pitch and roll within -180 to 180 phase. Could you fix it?

uecken avatar Nov 22 '20 00:11 uecken

May be you need to implement AHRS update function by yourself. the AHRS (roll pitch yaw) system is define how imu frame rotate from global frame you can redefine imu frame by tranform them once with rotation matrix before assign to AHRS function.

Menginventor avatar Nov 23 '20 18:11 Menginventor

Thank you your comment. I'm not used to C++, I'll try to fix.

uecken avatar Nov 23 '20 22:11 uecken

9 axis working example https://github.com/edumo/M5StickC_Imu-9-axis

edumo avatar May 03 '21 21:05 edumo