mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
fix double float operations
This commit is contained in:
parent
70f2c79449
commit
d86d08ea32
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ void updateAccReading(sensorState_t *sensor) {
|
||||||
|
|
||||||
accVelZ += velCmSecZ;
|
accVelZ += velCmSecZ;
|
||||||
|
|
||||||
velDriftZ = 0.005f * accVelZ + (1.0f - 0.005) * velDriftZ;
|
velDriftZ = 0.005f * accVelZ + (1.0f - 0.005f) * velDriftZ;
|
||||||
|
|
||||||
sensor->velocityAltCmS = accVelZ - velDriftZ;
|
sensor->velocityAltCmS = accVelZ - velDriftZ;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue