jrowberg / i2cdevlib

I2C device library collection for AVR/Arduino or other C++-based MCUs
http://www.i2cdevlib.com
3.94k stars 7.51k forks source link

MPUTeapot plane idle #53

Closed Shabangs closed 10 years ago

Shabangs commented 10 years ago

I'm trying MPUTeapot with Arduino UNO, a MPU6050. In processing, when I run the sketch I'm able to see the ypr values but the image of the plane is always idle. I used the latest version of your sketches, the latest toxiclibs library, Arduino 1.0.5 IDE and Processing 2.1 on several PCs and OS. The MPU6050 is a GY-521.

Odutna commented 10 years ago

Hi,

I have the same issue. I tried the FreeIMU Lib, written by Fabio Varesano and based on i2cdevlib, and all works fine. I'm still trying to figure out if I did something wrong, and what ...

2013/12/4 Shabangs notifications@github.com

I'm trying MPUTeapot with Arduino UNO, a MPU6050. In processing, when I run the sketch I'm able to see the ypr values but the image of the plane is always idle. I used the latest version of your sketches, the latest toxiclibs library, Arduino 1.0.5 IDE and Processing 2.1 on several PCs and OS. The MPU6050 is a GY-521.

— Reply to this email directly or view it on GitHubhttps://github.com/jrowberg/i2cdevlib/issues/53 .

jrowberg commented 10 years ago

Hello,

If you can see YPR values, then the Arduino sketch is not outputting the correct format. For the MPUTeapot demo to work, you have to comment out all of the OUTPUT #define's except for the TEAPOT one, which is a special binary format. The MPUTeapot example was built to mimic the format used by InvenSense's own Teapot demo application and uses this binary packet output.

Shabangs commented 10 years ago

Thank you very much, it works like a charm!

domanez commented 10 years ago

Hi I'm using MPUTeapot and Teensy 3.1 based on Arduino software. I can see the raw values and Quaternion on Arduino. However, when I run the MPUTeapot it gives me the following error: "The constructor Quaternion(float, float, float, float) is not visible" Please help me with this.

Thanks.

ysmintor commented 10 years ago

Hi,

Have you add the library for Quaternion which I mean *.h like helper_3dmath.h ?

发件人: domanez [mailto:notifications@github.com] 发送时间: 2014年6月3日 23:12 收件人: jrowberg/i2cdevlib 主题: Re: [i2cdevlib] MPUTeapot plane idle (#53)

Hi I'm using MPUTeapot and Teensy 3.1 based on Arduino software. I can see the raw values and Quaternion on Arduino. However, when I run the MPUTeapot it gives me the following error: "The constructor Quaternion(float, float, float, float) is not visible" Please help me with this.

Thanks.

— Reply to this email directly or view it on GitHub https://github.com/jrowberg/i2cdevlib/issues/53#issuecomment-44977257 . https://github.com/notifications/beacon/7165048__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNzQyNzUxMiwiZGF0YSI6eyJpZCI6MjEzOTc4ODh9fQ==--fd4bc39bbc3d3bc7c188c5ef67b81e352d98315e.gif

domanez commented 10 years ago

No! where can I find this Quaternion library?

jrowberg commented 9 years ago

The Quaternion library used in the Processing sketch comes from ToxicLibs:

The code comment block at the top of MPUTeapot.pde points to this:

// NOTE: requires ToxicLibs to be installed in order to run properly.
// 1. Download from http://toxiclibs.org/downloads
// 2. Extract into [userdir]/Processing/libraries
//    (location may be different on Mac/Linux)
// 3. Run and bask in awesomeness