mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
Fix use of floating point math functions
This commit is contained in:
parent
4c034d67ee
commit
87c259a26e
9 changed files with 20 additions and 19 deletions
|
@ -224,7 +224,7 @@ void setStickPosition(int axis, float stickRatio) {
|
|||
|
||||
// All calculations will have 10% tolerance
|
||||
float calculateTolerance(float input) {
|
||||
return fabs(input * 0.1f);
|
||||
return fabsf(input * 0.1f);
|
||||
}
|
||||
|
||||
TEST(pidControllerTest, testInitialisation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue