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
Diff: src/ConfigurationHandler/Controls/SetpointControl.h
- Revision:
- 86:189c125d8878
- Parent:
- 51:66b820f203a5
- Child:
- 89:55ac65d7f206
--- a/src/ConfigurationHandler/Controls/SetpointControl.h Tue Sep 20 13:47:15 2016 +0000 +++ b/src/ConfigurationHandler/Controls/SetpointControl.h Tue Sep 20 15:40:11 2016 +0000 @@ -22,6 +22,7 @@ string input; // control input string output; // control output double productFactor; + double setpoint; // setpoint value double highAlert; double lowAlert; double highFailsafe; @@ -43,68 +44,71 @@ // dtor ~SetpointControl() { printf("\r%s destructor invoked\n", __func__); - // TODO: unregister the control with the output task + // TODO: unregister the control with the output task } - // load the control data + // load the control data bool load(string filename); - - // register the control with the output task + + // register the control with the output task void registerControl(void); - + // unregister the control with the output task - void unregisterControl(void); - - // start the control + void unregisterControl(void); + + // start the control void start(void); - + // update the control - void update(void); - + void update(void); + bool underLimit(); bool overLimit(); - - // state transition functions + + // state transition functions void startFeed(); void stopFeed(); - string getControlFile(void) { + string getControlFile(void) const { return controlFile; } - string getId(void) { + string getId(void) const { return id; } - string getName(void) { + string getName(void) const { return name; } - unsigned int getPriority(void) { + unsigned int getPriority(void) const { return priority; } - string getInput(void) { + string getInput(void) const { return input; } - string getOutput(void) { + string getOutput(void) const { return output; } - float getProductFactor(void) { + float getProductFactor(void) const { return productFactor; } - float getHighAlert(void) { + float getSetpoint(void) const { + return setpoint; + } + float getHighAlert(void) const { return highAlert; } - float getLowAlert(void) { + float getLowAlert(void) const { return lowAlert; } - float getHighFailsafe(void) { + float getHighFailsafe(void) const { return highFailsafe; } - float getLowFailsafe(void) { + float getLowFailsafe(void) const { return lowFailsafe; } - float getTol(void) { + float getTol(void) const { return tol; } - State getCurrentState(void) { + State getCurrentState(void) const { return currentState; } };