1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1516 fixed boundf mistake

This commit is contained in:
Corvus Corax 2014-10-05 21:06:25 +02:00
parent e0b1e58e85
commit b05bd2fb34

View File

@ -46,7 +46,7 @@ static float applyExpo(float value, float expo);
static float applyExpo(float value, float expo)
{
// note: fastPow makes a small error, therefore result needs to be bound
float exp = boundf(fastPow(1.023293f, expo), -10.0f, 10.0f);
float exp = boundf(fastPow(1.023293f, expo), 0.1f, 10.0f);
// magic number scales expo
// so that