diff --git a/src/main/fc/mw.c b/src/main/fc/mw.c index 92cd5f4cc..fe55d90ea 100644 --- a/src/main/fc/mw.c +++ b/src/main/fc/mw.c @@ -828,7 +828,7 @@ void taskMainPidLoop(uint32_t currentTime) runTaskMainSubprocesses = false; } - // DEBUG_PIDLOOP + // DEBUG_PIDLOOP, timings for: // 0 - gyroUpdate() // 1 - pidController() // 2 - subTaskMainSubprocesses() diff --git a/src/main/scheduler/scheduler.c b/src/main/scheduler/scheduler.c index 81400d484..a69ed6e53 100755 --- a/src/main/scheduler/scheduler.c +++ b/src/main/scheduler/scheduler.c @@ -32,6 +32,12 @@ #include "drivers/system.h" +// DEBUG_SCHEDULER, timings for: +// 0 - gyroUpdate() +// 1 - pidController() +// 2 - time spent in scheduler +// 3 - time spent executing check function + static cfTask_t *currentTask = NULL; static uint32_t totalWaitingTasks;