diff --git a/libraries/AP_HAL_ChibiOS/Scheduler.h b/libraries/AP_HAL_ChibiOS/Scheduler.h index 904b4f3aa9..e97fe3a4c4 100644 --- a/libraries/AP_HAL_ChibiOS/Scheduler.h +++ b/libraries/AP_HAL_ChibiOS/Scheduler.h @@ -34,7 +34,9 @@ #define APM_STARTUP_PRIORITY 10 #ifndef APM_SPI_PRIORITY -#define APM_SPI_PRIORITY 179 +// SPI priority needs to be above main priority to ensure fast sampling of IMUs can keep up +// with the data rate +#define APM_SPI_PRIORITY 181 #endif #ifndef APM_UAVCAN_PRIORITY