You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ans you can see its showing a constant acceleration, when i gently move the unit the accel values change as if they were gyro values and when i shake the sensor the gyro values spike and they are normally stable at approx 0.0
The are clearly swapped.
when looking at this bit of the driver code, I thought that it might be a byte order issue, so gyro_z becomes buf[0] and accel_x becomes buf[6] but that doesn't seem to be the case as it does put the accel and gyro data in the correct place but the axis are all swapped
For whatever reason this assignment gave me the nearest reading, it doesn't follow the datasheet at all and so its probably not the correct solution or not even where the issue might be
I am using the following code to print out MPU6050's values:
And with the sensor still at an angle, here is the output i am getting:
Ans you can see its showing a constant acceleration, when i gently move the unit the accel values change as if they were gyro values and when i shake the sensor the gyro values spike and they are normally stable at approx 0.0
The are clearly swapped.
when looking at this bit of the driver code, I thought that it might be a byte order issue, so gyro_z becomes buf[0] and accel_x becomes buf[6] but that doesn't seem to be the case as it does put the accel and gyro data in the correct place but the axis are all swapped
For whatever reason this assignment gave me the nearest reading, it doesn't follow the datasheet at all and so its probably not the correct solution or not even where the issue might be
The text was updated successfully, but these errors were encountered: