AP_Scheduler: add accessor for tick counter

This commit is contained in:
Peter Barker 2017-11-13 16:58:19 +11:00 committed by Andrew Tridgell
parent 519e6c31d2
commit e713802c24

View File

@ -73,6 +73,9 @@ public:
// call when one tick has passed
void tick(void);
// return current tick counter
uint16_t ticks() const { return _tick_counter; }
// run the tasks. Call this once per 'tick'.
// time_available is the amount of time available to run
// tasks in microseconds