1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

TOFIX: For now hardcode a reversed orientation of MPU6000 for RevoMini

This commit is contained in:
James Cotton 2012-08-25 14:41:03 -05:00
parent c3906cfe90
commit c5fda8208b

View File

@ -302,12 +302,12 @@ static void SensorsTask(void *parameters)
while(xQueueReceive(queue, (void *) &mpu6000_data, gyro_samples == 0 ? 10 : 0) != errQUEUE_EMPTY)
{
gyro_accum[0] += mpu6000_data.gyro_x;
gyro_accum[1] += mpu6000_data.gyro_y;
gyro_accum[0] += -mpu6000_data.gyro_x;
gyro_accum[1] += -mpu6000_data.gyro_y;
gyro_accum[2] += mpu6000_data.gyro_z;
accel_accum[0] += mpu6000_data.accel_x;
accel_accum[1] += mpu6000_data.accel_y;
accel_accum[0] += -mpu6000_data.accel_x;
accel_accum[1] += -mpu6000_data.accel_y;
accel_accum[2] += mpu6000_data.accel_z;
gyro_samples ++;