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:
parent
70f2c79449
commit
d86d08ea32
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue