mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +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
|
@ -366,9 +366,9 @@ static void applyMixToMotors(float motorMix[MAX_SUPPORTED_MOTORS], motorMixer_t
|
|||
motorOutput = (motorOutput < motorRangeMin) ? mixerRuntime.disarmMotorOutput : motorOutput; // Prevent getting into special reserved range
|
||||
}
|
||||
#endif
|
||||
motorOutput = constrain(motorOutput, mixerRuntime.disarmMotorOutput, motorRangeMax);
|
||||
motorOutput = constrainf(motorOutput, mixerRuntime.disarmMotorOutput, motorRangeMax);
|
||||
} else {
|
||||
motorOutput = constrain(motorOutput, motorRangeMin, motorRangeMax);
|
||||
motorOutput = constrainf(motorOutput, motorRangeMin, motorRangeMax);
|
||||
}
|
||||
motor[i] = motorOutput;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue