New MPU6050 GY-521

Post Reply
Gaza07
Posts: 12
Joined: Sat Apr 23, 2011 9:28 pm
Location: Nottingham Uk

New MPU6050 GY-521

Post by Gaza07 »

I just bought a GY-521 from ebay http://www.ebay.co.uk/itm/270975107371#ht_3639wt_928 and ended up setting it up like below if some one could check this and maybe add it to future releases of the firmware,
The Mpu6050 appears to be set up the same as in the GY-85 / GY-86 10 dof boards

Code: Select all

#if defined(GY_251)
  #define MPU6050
  #define ACC_ORIENTATION(X, Y, Z)  {accADC[ROLL]  = -X; accADC[PITCH]  = -Y; accADC[YAW]  =  Z;}
  #define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] =  Y; gyroADC[PITCH] = -X; gyroADC[YAW] = -Z;}
  #undef INTERNAL_I2C_PULLUPS
#endif

Post Reply