AP_Math: fixed expo_curve()

doesn't make sense as constexpr
This commit is contained in:
Andrew Tridgell
2021-07-23 14:47:14 +10:00
parent 275f75d0cb
commit c5ef672fb5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ float linear_interpolate(float low_output, float high_output,
* alpha range: [0,1] min to max expo
* input range: [-1,1]
*/
constexpr float expo_curve(float alpha, float x)
float expo_curve(float alpha, float x)
{
return (1.0f - alpha) * x + alpha * x * x * x;
}