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:
parent
5f4a464f50
commit
2bbbf9937d
3 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue