Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
src/ConfigurationHandler/Controls/SetpointControl.h
- Committer:
- jmarkel44
- Date:
- 2016-09-08
- Revision:
- 30:738359dfdab1
- Parent:
- 28:c410a61238bb
- Child:
- 46:4cb96ab2d1c8
File content as of revision 30:738359dfdab1:
/****************************************************************************** * * File: SetpointControl.h * Desciption: ICE Timer Control Class * *****************************************************************************/ #ifndef SETPOINTCONTROL_H #define SETPOINTCONTROL_H #include "MbedJSONValue.h" #include <string> using namespace std; class SetpointControl { private: string controlFile; // name of the control file string id; // control identifier string name; // friendly name int priority; // control priority string input; // control input string output; // control output double productFactor; double highAlert; double lowAlert; double highFailsafe; double lowFailsafe; double tol; public: // constructor SetpointControl() {}; ~SetpointControl() { printf("\r%s destructor invoked\n", __func__); } // Load a control from the control file bool load(string filename); string getControlFile(void) { return controlFile; } string getId(void) { return id; } string getName(void) { return name; } unsigned int getPriority(void) { return priority; } string getInput(void) { return input; } string getOutput(void) { return output; } float getProductFactor(void) { return productFactor; } float getHighAlert(void) { return highAlert; } float getLowAlert(void) { return lowAlert; } float getHighFailsafe(void) { return highFailsafe; } float getLowFailsafe(void) { return lowFailsafe; } float getTol(void) { return tol; } }; #endif