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/ManualControl.cpp
- Revision:
- 217:d5a2ff093319
- Parent:
- 205:3c84af5f711f
- Child:
- 242:3b0086a6d625
--- a/src/ConfigurationHandler/Controls/ManualControl.cpp Mon Oct 10 16:07:40 2016 +0000
+++ b/src/ConfigurationHandler/Controls/ManualControl.cpp Tue Oct 11 12:24:28 2016 +0000
@@ -15,13 +15,14 @@
extern mDot *GLOBAL_mdot;
+//
// method: load
// description: open the configuration file and assign data to the
// setpoint control object
//
// @param controlFile -> name of the control file
// @return true if data is assigned; false on error
-
+//
bool ManualControl::load(string _controlFile)
{
MbedJSONValue json_value;
@@ -72,23 +73,25 @@
return true;
}
+//
// method: start
// description: start the manual control
//
// @param none
// @return none
-
+//
void ManualControl::start(void)
{
currentState = STATE_STARTUP;
}
+//
// method: update
// description: the setpoint control's state machine
//
// @param none
// @return none
-
+//
int ManualControl::update(void)
{
int rc = 0;
@@ -124,11 +127,13 @@
return rc;
}
+//
// method: unregisterControl
// description: unregister this control with the output master
//
// @param none
// @return none
+//
int ManualControl::unregisterControl(void)
{
logInfo("%s: Attempting to unregister %s\n",
@@ -180,7 +185,7 @@
// @return none
//
void ManualControl::display(void)
-{
+{
string mapper[] = { "INIT",
"STARTUP",
"CONTROL_ON",
