Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update MPUTeapot.pde
Without that update, the packets were not aligned. I understand that '$' can be part of incoming packet but without this line, aligned was always 0.
  • Loading branch information
pagalFromAgra committed Oct 24, 2013
1 parent e2fa9a6 commit f7fd92e
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -146,6 +146,7 @@ void serialEvent(Serial port) {
while (port.available() > 0) {
int ch = port.read();
print((char)ch);
if (ch == '$') {serialCount = 0;} // this will help with alignment
if (aligned < 4) {
// make sure we are properly aligned on a 14-byte packet
if (serialCount == 0) {
Expand Down

6 comments on commit f7fd92e

@albedo039
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'hello...i add just this line , but my probleme is that the plane did not move.. and before it was the same...
i receive well the data from my arduino uno,it's look ok in serial windows but the plane don't want to move when i change my mpu6050 card from position..
i do the test under windows xp 32 bts and under linux ubuntu 13.10....i only add toxi lib in the library ...i've got no error message...i do not understand...

you could help ?
best...

@jrowberg
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @albedo039,

Are you also changing the DMP6 example sketch to disable READABLE output and enable TEAPOT output? It will not work unless you do this also.

@albedo039
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yea !!.... i'm so confused !!...... now it's realy working good..

thank u very much..

@ekstc
Copy link

@ekstc ekstc commented on f7fd92e Jan 3, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. How does one download the library :/
  2. I am having major difficulty in getting my MPU6050 to work with the Arduino DUE
    PLEASE Help!?

@jrowberg
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ekstc,

There are download, installation, and usage instructions on the main project website:

http://www.i2cdevlib.com/usage

Note that you need the download/copy/move only the contents of the main /Arduino subfolder into your /Arduino/libraries user lib folder, NOT the "MSP430" folder.

@ecat87
Copy link

@ecat87 ecat87 commented on f7fd92e Mar 12, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to down load the teapot.pde

Please sign in to comment.