1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

Decoupling imu from config - acc_unarmedcal.

This commit is contained in:
Dominic Clifton 2014-06-07 02:27:07 +01:00
parent 5f4a464f50
commit 2bbbf9937d
3 changed files with 4 additions and 1 deletions

View file

@ -245,7 +245,7 @@ void acc_calc(uint32_t deltaT)
rotateV(&accel_ned.V, &rpy);
if (currentProfile.acc_unarmedcal == 1) {
if (imuRuntimeConfig->acc_unarmedcal == 1) {
if (!f.ARMED) {
accZoffset -= accZoffset / 64;
accZoffset += accel_ned.V.Z;