mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +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()
|
float PIOS_MPU6000_GetAccelScale()
|
||||||
{
|
{
|
||||||
return GRAV / 2048.0f;
|
return GRAV / 2048.0f / 2.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user