From 35854b35f6394bb32de74368f141718daee7fde6 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Sun, 1 Apr 2012 18:33:01 -0500 Subject: [PATCH] MPU6000 accel value coming out twice as high as it should. Need to store scale in cfg structure to fix this properly. --- flight/PiOS/Common/pios_mpu6000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/PiOS/Common/pios_mpu6000.c b/flight/PiOS/Common/pios_mpu6000.c index 3f923f9ae..ad6d3dbbf 100644 --- a/flight/PiOS/Common/pios_mpu6000.c +++ b/flight/PiOS/Common/pios_mpu6000.c @@ -332,7 +332,7 @@ float PIOS_MPU6000_GetScale() float PIOS_MPU6000_GetAccelScale() { - return GRAV / 2048.0f; + return GRAV / 2048.0f / 2.0f; } /**