I'm using MPU 6050 ... http://www.ebay.com/itm/270975107371?ss ... 1497.l2649
and what i've noticed is that when i tilt my quad front (tail up) Roll goes left in the GUI

Any idea why ?
tovrin wrote:sensor orientation? make sure its facing the right direction when mounted to your board. I have a chip with a mpu6050 built in and it has x and y written on the chip for orientation
doughboy wrote:I use the exact same sensor. I incorrectly set it so Y arrow is pointing to front. I think you are correct to make the X arrow point to the front. I had to switch the X and Y in the sensor orientation define to make pitch and roll as shown in win-gui right.
I think X arrow points to the front, and that is for roll, then Y is for pitch and Z for yaw.
copterrichie wrote:If you have the same board as I do, the markings are incorrect.
Code: Select all
//if you want to change to orientation of individual sensor
//#define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = Y; accADC[PITCH] = -X; accADC[YAW] = Z;}
//#define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = -Y; gyroADC[PITCH] = X; gyroADC[YAW] = Z;}
//#define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = X; magADC[PITCH] = Y; magADC[YAW] = Z;}
copterrichie wrote:Code: Select all
//if you want to change to orientation of individual sensor
//#define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = Y; accADC[PITCH] = -X; accADC[YAW] = Z;}
//#define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = -Y; gyroADC[PITCH] = X; gyroADC[YAW] = Z;}
//#define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = X; magADC[PITCH] = Y; magADC[YAW] = Z;}
You can change it here, no big deal.