1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 14:25:16 +03:00

Merge pull request #3513 from giacomo892/BBPosZ_fix

Remove posZ constrain to int16 for BB
This commit is contained in:
Alberto García Hierro 2018-07-07 21:07:18 +01:00 committed by GitHub
commit c1bcd75d20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1816,7 +1816,7 @@ void updateActualAltitudeAndClimbRate(bool estimateValid, float newAltitude, flo
}
#if defined(NAV_BLACKBOX)
navLatestActualPosition[Z] = constrain(navGetCurrentActualPositionAndVelocity()->pos.z, -32678, 32767);
navLatestActualPosition[Z] = navGetCurrentActualPositionAndVelocity()->pos.z;
navActualVelocity[Z] = constrain(navGetCurrentActualPositionAndVelocity()->vel.z, -32678, 32767);
#endif
}