I have uploaded the code to the APM. The board is on a flat and stable surface. When I start the serial monitor I will receive a high accel Z, as you can see here.
2061,2016,2456,1673,1678,1680,1578,2828
Is there anything wrong?
If not can it be calibrated?
Thanks,
Scott Quartochi
Replies
Well Z-accel is never at zero when quad stays on table :)
It should show around 460 when at level. Why? Answer is rather simple. It's due earth gravity. Accell measures gravity changes and when It is level and not moving x/y axis are at zero but due earth is pulling us towards it's center with aproximate force of 1G. Accell what we use on OilPan shows 460 at 1G. This walue changes a bit on different locations. Best way to find it is to calibrate x/y to zero and then told you quad 90 degrees. And you should see 460ish value on your X or Y axis depends on which way you tilted IMU.
So after that you can make Z calibration correctly :)