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:
parent
e0b1e58e85
commit
b05bd2fb34
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user