1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

MPU6000 accel value coming out twice as high as it should. Need to store scale

in cfg structure to fix this properly.
This commit is contained in:
James Cotton 2012-04-01 18:33:01 -05:00
parent 8032130769
commit 35854b35f6

View File

@ -332,7 +332,7 @@ float PIOS_MPU6000_GetScale()
float PIOS_MPU6000_GetAccelScale()
{
return GRAV / 2048.0f;
return GRAV / 2048.0f / 2.0f;
}
/**