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:
parent
8032130769
commit
35854b35f6
@ -332,7 +332,7 @@ float PIOS_MPU6000_GetScale()
|
||||
|
||||
float PIOS_MPU6000_GetAccelScale()
|
||||
{
|
||||
return GRAV / 2048.0f;
|
||||
return GRAV / 2048.0f / 2.0f;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user