diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index d2fe3fdcb9..3f8f8dae16 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -15,6 +15,12 @@ #ifndef _AP_COMMON_H #define _AP_COMMON_H +// Get the common arduino functions +#include "wiring.h" +// ... and remove some of their stupid macros +#undef round +#undef abs + #include #include "include/menu.h" /// simple menu subsystem #include "c++.h" // c++ additions @@ -22,6 +28,8 @@ //#include "AP_Loop.h" #include "AP_Var.h" + + //////////////////////////////////////////////////////////////////////////////// /// @name Warning control //@{