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.cpp
- Revision:
- 89:55ac65d7f206
- Parent:
- 87:c466bde76fa0
- Child:
- 90:7d9731dec0da
diff -r 8a1a2bba8850 -r 55ac65d7f206 src/ConfigurationHandler/Controls/SetpointControl.cpp --- a/src/ConfigurationHandler/Controls/SetpointControl.cpp Tue Sep 20 16:28:24 2016 +0000 +++ b/src/ConfigurationHandler/Controls/SetpointControl.cpp Tue Sep 20 17:39:56 2016 +0000 @@ -47,17 +47,15 @@ parse(json_value, dataBuf); id = json_value["id"].get<string>(); - name = json_value["name"].get<string>(); priority = atoi(json_value["priority"].get<string>().c_str()); input = json_value["input"].get<string>(); output = json_value["output"].get<string>(); + setpoint = atof(json_value["setpoint"].get<string>().c_str()); productFactor = atof(json_value["prodfact"].get<string>().c_str()); - setpoint = atof(json_value["setpoint"].get<string>().c_str()); highAlert = atof(json_value["halert"].get<string>().c_str()); lowAlert = atof(json_value["lalert"].get<string>().c_str()); highFailsafe = atof(json_value["hfs"].get<string>().c_str()); lowFailsafe = atof(json_value["lfs"].get<string>().c_str()); - tol = atof(json_value["tol"].get<string>().c_str()); return true; // object created successfully }