diff --git a/libraries/AP_Math/AP_Math.cpp b/libraries/AP_Math/AP_Math.cpp index 20e49f9264..087aedff99 100644 --- a/libraries/AP_Math/AP_Math.cpp +++ b/libraries/AP_Math/AP_Math.cpp @@ -117,3 +117,12 @@ float pythagorous2(float a, float b) { float pythagorous3(float a, float b, float c) { return sqrtf(sq(a)+sq(b)+sq(c)); } + +float maxf(float a, float b) +{ + return (a>b?a:b); +} +float minf(float a, float b) +{ + return (a(b)?(a):(b)) #define min(a,b) ((a)<(b)?(a):(b)) +float maxf(float a, float b); +float minf(float a, float b); #endif // AP_MATH_H