from trying out some algorithms on the raw sensor data I noticed some inconsistencies, mainly regarding the MPU6050 and sensor orientation. In def.h it reads:
Code: Select all
#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;}
#define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = X; magADC[PITCH] = Y; magADC[YAW] = -Z;}
However, as this is a single IC (acc & gyro), how can the orientation be this "wrong"?
Is this for historical reasons, so pitch/roll come out right in getEstimatedAttitude()?