LoginSignup
0
1

More than 5 years have passed since last update.

傾斜計 > Link > MPU-9250のCalibration > MPU-6050用オフセット調整コード

Last updated at Posted at 2016-07-02
動作環境
ESP-WROOM-02
MPU-9250 https://strawberry-linux.com/catalog/items?code=12250
ライブラリ https://github.com/jrowberg/i2cdevlib/

MPU-9250はライブラリの関数 setXAccelOffset(), setXGyroOffset()などを使ってオフセットの調整をする。
では、そのオフセット値をどのように取得すればいいのだろうか。

以下にMPU-6050のオフセット調整のコードがあげられている。
http://www.i2cdevlib.com/forums/topic/96-arduino-sketch-to-automatically-calculate-mpu6050-offsets/

このコードをMPU-9250用に変更する必要がある。

ジャイロと加速度のオフセット調整なので、コンパスのオフセットは未消化。

実際に動かしてみたが、収束しない。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1