rpicopter / ArduinoMotionSensorExample

MPU6050/MPU6500/MPU9150/MPU9250 over I2c for Arduino
117 stars 40 forks source link

what are the typical values? #5

Open mugenZebra opened 9 years ago

mugenZebra commented 9 years ago

Hi I am getting values from mympu.ypr[] such as these: flag=0, yaw=1113954709, pitch=-1036282457, roll=1114848765 flag=0, yaw=1113954333, pitch=-1036282735, roll=1114848822 flag=0, yaw=1113954277, pitch=-1036282732, roll=1114848713 flag=0, yaw=1113954623, pitch=-1036282565, roll=1114848136

When I rotate them I can see changes, and when they are back to original position they return to what they was before, at least close to what they was. But the value range is too big in my opinion. I guess I am expecting to get 0-360 degrees? What are the typical values you have?

mugenZebra commented 9 years ago

It turned out that I assigned mympu.ypr[n] to a integer type, which should be float.