From 4888583e17da5e433af0b00475ad2cde1ca2906c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 17 May 2019 09:00:22 +1000 Subject: [PATCH] AP_Scheduler: use task -3 for wait_for_sample() --- libraries/AP_Scheduler/AP_Scheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Scheduler/AP_Scheduler.cpp b/libraries/AP_Scheduler/AP_Scheduler.cpp index b486b9e9df..18c5cb9e4a 100644 --- a/libraries/AP_Scheduler/AP_Scheduler.cpp +++ b/libraries/AP_Scheduler/AP_Scheduler.cpp @@ -232,7 +232,9 @@ float AP_Scheduler::load_average() void AP_Scheduler::loop() { // wait for an INS sample + hal.util->persistent_data.scheduler_task = -3; AP::ins().wait_for_sample(); + hal.util->persistent_data.scheduler_task = -1; const uint32_t sample_time_us = AP_HAL::micros();