Refactoring and other updates

Dependencies:   BLE_API mbed nRF51822

Fork of nRF51822_SimpleChat by Cristi Stoican

Controller.hpp

Committer:
carbune92
Date:
2017-05-10
Revision:
7:806b08205b25
Parent:
3:b6e4e5529a52

File content as of revision 7:806b08205b25:

#ifndef CONTROLLER_H
#define CONTROLLER_H

#include "ControllerParams.hpp"
#include "stdint.h"

using namespace std;

class Controller {
	protected:	
		float ref;
		float out;
		float cmd;

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

		float getCmd();
};

#endif