no activity in my processing windows

edited November 2013 in Arduino

:P   hello ..glad to me u :D

i come back from a code forum, it's not so easy to make processing work with my arduino mp6050 device.... i got this from arduino :

http://ieee.free.fr/ardui/dmp_revu.ino

and it's realy working good, i see datas gliding down .. ok .

and i ve got this for Pde sketch on procesing:

http://ieee.free.fr/ardui/mpunono.pde

and the picture is on but it don't move...why....i don't know... :(.. wrong teapot packet?

why my picture don't move ??

if you got an idea ??

Answers

  • The only variable in draw() seems to be quat. Do you see this value to change?

  • yea..hello philho... i see this , but i don't know how it works.. this is my code :

    get quaternion from data packet

                    q[0] = ((teapotPacket[2] << 8) | teapotPacket[3]) / 16384.0f;
    
                    q[1] = ((teapotPacket[4] << 8) | teapotPacket[5]) / 16384.0f;
    
                    q[2] = ((teapotPacket[6] << 8) | teapotPacket[7]) / 16384.0f;
    
                   q[3] = ((teapotPacket[8] << 8) | teapotPacket[9]) / 16384.0f;
                    for (int i = 0; i < 4; i++) if (q[i] >= 2) q[i] = -4 + q[i];
    
                    // set our toxilibs quaternion to new data
                   quat.set(q[0], q[1], q[2], q[3]);
    

    what value can i moove to get a change of position ??

    best... ;)

  • the fact is that the programm must be ok...i wonder if under linux it would be great :(|) may be my environnement 'd to bee looking at... :-B

  • I mean, do you println() or text() this value, to see if it really changes?

Sign In or Register to comment.