hello,
I'm about to design a program based on a subsumption architecture (sensor-event-based behaviour) for the Due.
My questions:
1.) once having started a Scheduler task by
Scheduler.startLoop(taskName);
- how is it possible to make this task stop prematurely and thus release it from the timeslice scheduler (in case it must be superseded by a higher priority task) ?
sort of
Scheduler.stopLoop(taskName); // stop completely until restarted by ...startLoop()
or at least make it inactive / idle, e.g. by something like
Scheduler.idleLoop(taskName); // make it sleep until awakened again (how?)
?
2.) Next question:
Scheduler tasks are designed to run forever, but how is it possible to make it run just a couple of times, depending on flanking (environmental) conditions or depending on semaphore values ?