APMrover2: use function name for AP_Scheduler task name

That makes it easier to identify tasks when debug is enabled in AP_Scheduler.
This commit is contained in:
Gustavo Jose de Sousa 2015-07-28 13:34:36 -03:00 committed by Andrew Tridgell
parent 8fe466ce27
commit d6778fbf53
1 changed files with 3 additions and 1 deletions

View File

@ -39,8 +39,10 @@ Rover rover;
#define SCHED_TASK(func, _interval_ticks, _max_time_micros) {\
.function = FUNCTOR_BIND(&rover, &Rover::func, void),\
AP_SCHEDULER_NAME_INITIALIZER(func)\
.interval_ticks = _interval_ticks,\
.max_time_micros = _max_time_micros}
.max_time_micros = _max_time_micros,\
}
/*
scheduler table - all regular tasks should be listed here, along