Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
TaskWait.h
- Committer:
- Jacqueline
- Date:
- 2020-03-31
- Revision:
- 0:20ec9d702676
File content as of revision 0:20ec9d702676:
/* * TaskWait.h * Copyright (c) 2020, 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_ */