TeamSurface / Mbed 2 deprecated ROME_P3

Dependencies:   mbed

Library/TaskWait.h

Committer:
kueenste
Date:
2018-03-23
Revision:
1:7bf9b6c007a1
Parent:
0:7cf5bf7e9486

File content as of revision 1:7bf9b6c007a1:

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