i2cdevlib icon indicating copy to clipboard operation
i2cdevlib copied to clipboard

MPUTeapot plane idle

Open Shabangs opened this issue 13 years ago • 7 comments

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.

Shabangs avatar Dec 04 '13 00:12 Shabangs

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 [email protected]

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 .

Odutna avatar Dec 04 '13 12:12 Odutna

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.

jrowberg avatar Dec 04 '13 13:12 jrowberg

Thank you very much, it works like a charm!

Shabangs avatar Dec 04 '13 16:12 Shabangs

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.

domanez avatar Jun 03 '14 15:06 domanez

Hi,

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

发件人: domanez [mailto:[email protected]] 发送时间: 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

ysmintor avatar Jun 04 '14 04:06 ysmintor

No! where can I find this Quaternion library?

domanez avatar Jun 04 '14 12:06 domanez

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

  • http://toxiclibs.org/downloads/

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

jrowberg avatar Nov 30 '14 21:11 jrowberg