diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index ac69fb2a85..42dfe7e6c2 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -186,7 +186,6 @@ AP_GPS_None g_gps_driver(NULL); #endif // CONFIG_IMU_TYPE AP_IMU_INS imu( &ins, Parameters::k_param_IMU_calibration ); AP_DCM dcm(&imu, g_gps); -AP_TimerProcess timer_scheduler; #elif HIL_MODE == HIL_MODE_SENSORS // sensor emulators @@ -197,7 +196,6 @@ AP_GPS_HIL g_gps_driver(NULL); AP_InertialSensor_Oilpan ins( &adc ); AP_IMU_Shim imu; AP_DCM dcm(&imu, g_gps); -AP_TimerProcess timer_scheduler; #elif HIL_MODE == HIL_MODE_ATTITUDE AP_ADC_HIL adc; @@ -210,6 +208,9 @@ AP_IMU_Shim imu; // never used #error Unrecognised HIL_MODE setting. #endif // HIL MODE +// we always have a timer scheduler +AP_TimerProcess timer_scheduler; + //////////////////////////////////////////////////////////////////////////////// // GCS selection