Es loht sich compile und lieferet au Wert. Das wärs aber au scho gsi.
Diff: TaskWait.h
- Revision:
- 0:1a79273bc3e6
diff -r 000000000000 -r 1a79273bc3e6 TaskWait.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskWait.h Mon Apr 09 07:00:45 2018 +0000 @@ -0,0 +1,33 @@ +/* + * TaskWait.h + * Copyright (c) 2018, ZHAW + * All rights reserved. + */ + +#ifndef TASK_WAIT_H_ +#define TASK_WAIT_H_ + +#include <cstdlib> +#include "Controller.h" +#include "Task.h" + +/** + * This is a specific implementation of a task class that waits for a given duration. + */ +class TaskWait : public Task { + + public: + + TaskWait(Controller& controller, float duration); + virtual ~TaskWait(); + virtual int run(float period); + + private: + + Controller& controller; + float duration; + float time; +}; + +#endif /* TASK_WAIT_H_ */ +