mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
AP_Math: esp32 with esp_idf have MIN and MAX defined to something else.
Author: Charles Villard <charlesvillard10@gmail.com> Author: Buzz <davidbuzz@gmail.com>
This commit is contained in:
parent
d4e2828540
commit
adaccdf0ba
@ -215,12 +215,14 @@ ftype norm(const T first, const U second, const Params... parameters)
|
||||
return sqrtF(sq(first, second, parameters...));
|
||||
}
|
||||
|
||||
#undef MIN
|
||||
template<typename A, typename B>
|
||||
static inline auto MIN(const A &one, const B &two) -> decltype(one < two ? one : two)
|
||||
{
|
||||
return one < two ? one : two;
|
||||
}
|
||||
|
||||
#undef MAX
|
||||
template<typename A, typename B>
|
||||
static inline auto MAX(const A &one, const B &two) -> decltype(one > two ? one : two)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user