diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index 45e41b7d59..3edefc1515 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -179,15 +179,15 @@ AP_IMU_Shim imu; // never used #error Unrecognised HIL_MODE setting. #endif // HIL MODE +AP_TimerProcess timer_scheduler; + #if HIL_MODE != HIL_MODE_ATTITUDE #if HIL_MODE != HIL_MODE_SENSORS // Normal #if CONFIG_IMU_TYPE == CONFIG_IMU_MPU6000 AP_InertialSensor_MPU6000 ins( CONFIG_MPU6000_CHIP_SELECT_PIN ); - AP_TimerProcess timer_scheduler; #else AP_InertialSensor_Oilpan ins( &adc ); - AP_TimerAperiodicProcess timer_scheduler; #endif AP_IMU_INS imu( &ins, Parameters::k_param_IMU_calibration ); #else