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/ManualControl.cpp@96:807f04bd5256, 2016-09-21 (annotated)
- Committer:
- jmarkel44
- Date:
- Wed Sep 21 12:54:41 2016 +0000
- Revision:
- 96:807f04bd5256
- Child:
- 97:5cf6ab71dcd0
added tolerance to the setpoint control;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmarkel44 | 96:807f04bd5256 | 1 | /****************************************************************************** |
jmarkel44 | 96:807f04bd5256 | 2 | * |
jmarkel44 | 96:807f04bd5256 | 3 | * File: ManualControl.cpp |
jmarkel44 | 96:807f04bd5256 | 4 | * Desciption: ICE Manual Control Class implementation |
jmarkel44 | 96:807f04bd5256 | 5 | * |
jmarkel44 | 96:807f04bd5256 | 6 | *****************************************************************************/ |
jmarkel44 | 96:807f04bd5256 | 7 | #include "ManualControl.h" |
jmarkel44 | 96:807f04bd5256 | 8 | #include "mDot.h" |
jmarkel44 | 96:807f04bd5256 | 9 | #include "MbedJSONValue.h" |
jmarkel44 | 96:807f04bd5256 | 10 | #include "ModbusMasterApi.h" |
jmarkel44 | 96:807f04bd5256 | 11 | #include "global.h" |
jmarkel44 | 96:807f04bd5256 | 12 | #include <string> |
jmarkel44 | 96:807f04bd5256 | 13 | |
jmarkel44 | 96:807f04bd5256 | 14 | extern mDot *GLOBAL_mdot; |
jmarkel44 | 96:807f04bd5256 | 15 | |
jmarkel44 | 96:807f04bd5256 | 16 | // Method: load |
jmarkel44 | 96:807f04bd5256 | 17 | // Description: open the configuration file and assign data to the |
jmarkel44 | 96:807f04bd5256 | 18 | // setpoint control object |
jmarkel44 | 96:807f04bd5256 | 19 | // |
jmarkel44 | 96:807f04bd5256 | 20 | // @param controlFile -> name of the control file |
jmarkel44 | 96:807f04bd5256 | 21 | // @return true if data is assigned; false on error |
jmarkel44 | 96:807f04bd5256 | 22 | |
jmarkel44 | 96:807f04bd5256 | 23 | bool ManualControl::load(string _controlFile) |
jmarkel44 | 96:807f04bd5256 | 24 | { |
jmarkel44 | 96:807f04bd5256 | 25 | return true; |
jmarkel44 | 96:807f04bd5256 | 26 | } |
jmarkel44 | 96:807f04bd5256 | 27 | |
jmarkel44 | 96:807f04bd5256 | 28 | // Method: start |
jmarkel44 | 96:807f04bd5256 | 29 | // Description: start the manual control |
jmarkel44 | 96:807f04bd5256 | 30 | // |
jmarkel44 | 96:807f04bd5256 | 31 | // @param none |
jmarkel44 | 96:807f04bd5256 | 32 | // @return none |
jmarkel44 | 96:807f04bd5256 | 33 | |
jmarkel44 | 96:807f04bd5256 | 34 | int ManualControl::start(void) |
jmarkel44 | 96:807f04bd5256 | 35 | { |
jmarkel44 | 96:807f04bd5256 | 36 | return 0; |
jmarkel44 | 96:807f04bd5256 | 37 | } |
jmarkel44 | 96:807f04bd5256 | 38 | |
jmarkel44 | 96:807f04bd5256 | 39 | // Method: update |
jmarkel44 | 96:807f04bd5256 | 40 | // Description: |
jmarkel44 | 96:807f04bd5256 | 41 | // |
jmarkel44 | 96:807f04bd5256 | 42 | // @param none |
jmarkel44 | 96:807f04bd5256 | 43 | // @return none |
jmarkel44 | 96:807f04bd5256 | 44 | |
jmarkel44 | 96:807f04bd5256 | 45 | int ManualControl::update(void) |
jmarkel44 | 96:807f04bd5256 | 46 | { |
jmarkel44 | 96:807f04bd5256 | 47 | return 0; |
jmarkel44 | 96:807f04bd5256 | 48 | } |
jmarkel44 | 96:807f04bd5256 | 49 | |
jmarkel44 | 96:807f04bd5256 | 50 | |
jmarkel44 | 96:807f04bd5256 | 51 | |
jmarkel44 | 96:807f04bd5256 | 52 | // Method: unregisterControl |
jmarkel44 | 96:807f04bd5256 | 53 | // Description: unregister this control with the output master |
jmarkel44 | 96:807f04bd5256 | 54 | // |
jmarkel44 | 96:807f04bd5256 | 55 | // @param none |
jmarkel44 | 96:807f04bd5256 | 56 | // @return none |
jmarkel44 | 96:807f04bd5256 | 57 | int ManualControl::unregisterControl(void) |
jmarkel44 | 96:807f04bd5256 | 58 | { |
jmarkel44 | 96:807f04bd5256 | 59 | return 0; |
jmarkel44 | 96:807f04bd5256 | 60 | } |
jmarkel44 | 96:807f04bd5256 | 61 | |
jmarkel44 | 96:807f04bd5256 | 62 | void ManualControl::display(void) |
jmarkel44 | 96:807f04bd5256 | 63 | { |
jmarkel44 | 96:807f04bd5256 | 64 | |
jmarkel44 | 96:807f04bd5256 | 65 | } |