1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Fix error in rc expo calculation // add configurable expo power

This commit is contained in:
borisbstyle 2016-09-02 22:04:53 +02:00
parent c53c5250a9
commit 3f6860b83b
7 changed files with 20 additions and 3 deletions

View file

@ -99,6 +99,13 @@ float acos_approx(float x)
}
#endif
float powerf(float base, int exp) {
float result = base;
for (int count = 1; count < exp; count++) result *= base;
return result;
}
int32_t applyDeadband(int32_t value, int32_t deadband)
{
if (ABS(value) < deadband) {