Cristi Stoican / Mbed 2 deprecated Migration

Dependencies:   BLE_API mbed nRF51822

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Controller.hpp Source File

Controller.hpp

00001 #ifndef CONTROLLER_H
00002 #define CONTROLLER_H
00003 
00004 #include "ControllerParams.hpp"
00005 
00006 using namespace std;
00007 
00008 class Controller {
00009     protected:  
00010         float ref;
00011         float out;
00012 
00013     public:
00014         virtual float calculateCmd(void) const = 0;
00015         virtual void updateParams(ControllerParams&) = 0;
00016         virtual ~Controller();  
00017     
00018         void updateRef(float);  
00019         void updateOut(float);  
00020 };
00021 
00022 #endif