dsf

Dependencies:   BLE_API mbed nRF51822

Controller.hpp

Committer:
stoicancristi
Date:
2017-02-05
Revision:
0:b5906c81772b

File content as of revision 0:b5906c81772b:

#ifndef CONTROLLER_H
#define CONTROLLER_H

#include "ControllerParams.hpp"

using namespace std;

class Controller {
    protected:  
        float ref;
        float out;

    public:
        virtual float calculateCmd(void) const = 0;
        virtual void updateParams(ControllerParams&) = 0;
        virtual ~Controller();  
    
        void updateRef(float);  
        void updateOut(float);  
};

#endif