diff --git a/libraries/AP_Math/examples/eulers/eulers.pde b/libraries/AP_Math/examples/eulers/eulers.pde index fea7e26a6d..f16ab6b0cc 100644 --- a/libraries/AP_Math/examples/eulers/eulers.pde +++ b/libraries/AP_Math/examples/eulers/eulers.pde @@ -11,24 +11,27 @@ FastSerialPort(Serial, 0); #ifdef DESKTOP_BUILD // all of this is needed to build with SITL + #include + #include #include #include #include #include #include #include - #include - #include #include #include #include + #include + #include #include + #include Arduino_Mega_ISR_Registry isr_registry; AP_Baro_BMP085_HIL barometer; AP_Compass_HIL compass; #endif -#include + static float rad_diff(float rad1, float rad2) diff --git a/libraries/AP_Math/examples/location/location.pde b/libraries/AP_Math/examples/location/location.pde index 2ef3492c25..0da9c9d629 100644 --- a/libraries/AP_Math/examples/location/location.pde +++ b/libraries/AP_Math/examples/location/location.pde @@ -9,6 +9,8 @@ #ifdef DESKTOP_BUILD // all of this is needed to build with SITL + #include + #include #include #include #include @@ -18,11 +20,10 @@ #include #include #include + #include + #include #include #include - #include - #include - #include Arduino_Mega_ISR_Registry isr_registry; AP_Baro_BMP085_HIL barometer; AP_Compass_HIL compass; diff --git a/libraries/AP_Math/examples/rotations/rotations.pde b/libraries/AP_Math/examples/rotations/rotations.pde index 1545d6e46a..0c24ffcf8b 100644 --- a/libraries/AP_Math/examples/rotations/rotations.pde +++ b/libraries/AP_Math/examples/rotations/rotations.pde @@ -11,6 +11,8 @@ FastSerialPort(Serial, 0); #ifdef DESKTOP_BUILD // all of this is needed to build with SITL + #include + #include #include #include #include @@ -20,13 +22,15 @@ FastSerialPort(Serial, 0); #include #include #include + #include // ArduPilot Mega Declination Helper Library + #include + #include + #include Arduino_Mega_ISR_Registry isr_registry; AP_Baro_BMP085_HIL barometer; AP_Compass_HIL compass; #endif -#include // ArduPilot Mega Declination Helper Library - // standard rotation matrices (these are the originals from the old code) #define MATRIX_ROTATION_NONE Matrix3f(1, 0, 0, 0, 1, 0, 0,0, 1)