diff --git a/libraries/AP_Math/examples/rotations/rotations.pde b/libraries/AP_Math/examples/rotations/rotations.pde
index 2327bd9a5187e120af15ecff9d0a12f38d7db60f..3d9546d1aa71c6d7afd8f77a00936430e9d5f697 100644
--- a/libraries/AP_Math/examples/rotations/rotations.pde
+++ b/libraries/AP_Math/examples/rotations/rotations.pde
@@ -32,6 +32,7 @@
 #include <AP_Airspeed.h>
 #include <AP_Vehicle.h>
 #include <AP_ADC_AnalogSource.h>
+#include <AP_Rally.h>
 
 const AP_HAL::HAL& hal = AP_HAL_BOARD_DRIVER;