ROME2 - TI / Mbed 2 deprecated ROME2 - Praktikum

Dependencies:   mbed

TaskWait.h

Committer:
solcager
Date:
2017-03-31
Revision:
1:08ca9b208045

File content as of revision 1:08ca9b208045:

/*
 * TaskWait.h
 * Copyright (c) 2017, ZHAW
 * All rights reserved.
 */

#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_ */