Quentin Mettraux
/
MAVErIC_TEST
Working Maveric
TaskWait.h
- Committer:
- mettrque
- Date:
- 2017-08-22
- Revision:
- 10:36a2131f636c
- Parent:
- 1:bb380c4b8e47
File content as of revision 10:36a2131f636c:
/* * TaskWait.h * Copyright (c) 2017, ZHAW * All rights reserved. * * Created on: 04.04.2017 * Author: Quentin Mettraux */ #ifndef TASK_WAIT_H_ #define TASK_WAIT_H_ #include <cstdlib> #include "Task.h" #include "Controller.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_ */