1
0
forked from fsfw/fsfw

implemented fixed timeslot task

This commit is contained in:
2020-06-05 23:18:00 +02:00
parent d74f2c7560
commit 87f64d99cd
5 changed files with 330 additions and 8 deletions

View File

@ -64,6 +64,7 @@ public:
ReturnValue_t sleepFor(uint32_t ms);
protected:
using chron_ms = std::chrono::milliseconds;
bool started;
//!< Typedef for the List of objects.
typedef std::vector<ExecutableObjectIF*> ObjectList;
@ -115,8 +116,8 @@ protected:
*/
void taskFunctionality(void);
bool delayUntil(std::chrono::milliseconds * previousWakeTimeMs,
const std::chrono::milliseconds interval);
bool delayForInterval(chron_ms * previousWakeTimeMs,
const chron_ms interval);
};
#endif /* PERIODICTASK_H_ */