Jump to content
I2Cdevlib Forums

Johnny1010

Members
  • Posts

    2
  • Joined

  • Last visited

Johnny1010's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi everyone, Has anybody tried the function dmpGetGyro(). The values are scaled in a particular way and I can't figure it out.I get values from 0 to 1431 and these are independent of the gyro scale range set but for 250 dps the values do saturate even at slow motion and don't saturate for the same motion at 2000 dps. Regards.
  2. Hi everyone, I wanted to ask that what changes do I need to make to the MPU6050_6Axis_MotionApps20.h file when running the sensor at 16g. Do I need to change the 16384 here to 2048. uint8_t MPU6050::dmpGetQuaternion(Quaternion *q, const uint8_t* packet) { // TODO: accommodate different arrangements of sent data (ONLY default supported now) int16_t qI[4]; uint8_t status = dmpGetQuaternion(qI, packet); if (status == 0) { q -> w = (float)qI[0] / 16384.0f; q -> x = (float)qI[1] / 16384.0f; q -> y = (float)qI[2] / 16384.0f; q -> z = (float)qI[3] / 16384.0f; return 0; } return status; // int16 return value, indicates error if this line is reached }
×
×
  • Create New...