1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

fix double float operations

This commit is contained in:
ahmedsalah52 2024-12-11 01:05:32 +01:00
parent 70f2c79449
commit d86d08ea32

View file

@ -352,7 +352,7 @@ void updateAccReading(sensorState_t *sensor) {
accVelZ += velCmSecZ;
velDriftZ = 0.005f * accVelZ + (1.0f - 0.005) * velDriftZ;
velDriftZ = 0.005f * accVelZ + (1.0f - 0.005f) * velDriftZ;
sensor->velocityAltCmS = accVelZ - velDriftZ;