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:
parent
c53c5250a9
commit
3f6860b83b
7 changed files with 20 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue