ROME2 - TI / Mbed 2 deprecated ROME2 - Praktikum

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TaskWait.h Source File

TaskWait.h

00001 /*
00002  * TaskWait.h
00003  * Copyright (c) 2017, ZHAW
00004  * All rights reserved.
00005  */
00006 
00007 #ifndef TASK_WAIT_H_
00008 #define TASK_WAIT_H_
00009 
00010 #include <cstdlib>
00011 #include "Task.h"
00012 #include "Controller.h"
00013 
00014 /**
00015  * This is a specific implementation of a task class that waits for a given duration.
00016  */
00017 class TaskWait : public Task {
00018     
00019     public:
00020         
00021                     TaskWait(Controller& controller, float duration);
00022         virtual     ~TaskWait();
00023         virtual int run(float period);
00024         
00025     private:
00026         
00027         Controller& controller;
00028         float       duration;
00029         float       time;
00030 };
00031 
00032 #endif /* TASK_WAIT_H_ */
00033