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.cpp@19:9bc8fabeddfa, 2016-09-07 (annotated)
- Committer:
- jmarkel44
- Date:
- Wed Sep 07 19:40:17 2016 +0000
- Revision:
- 19:9bc8fabeddfa
- Parent:
- 14:cc916fa8dd11
- Child:
- 20:653923c2f37a
created Load method for Timer and Setpoint controls;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jmarkel44 | 14:cc916fa8dd11 | 1 | /****************************************************************************** |
jmarkel44 | 14:cc916fa8dd11 | 2 | * |
jmarkel44 | 19:9bc8fabeddfa | 3 | * File: SetpointControl.cpp |
jmarkel44 | 19:9bc8fabeddfa | 4 | * Desciption: ICE Setpoint Control Class implementation |
jmarkel44 | 14:cc916fa8dd11 | 5 | * |
jmarkel44 | 14:cc916fa8dd11 | 6 | *****************************************************************************/ |
jmarkel44 | 13:c80c283f9db2 | 7 | #include "SetpointControl.h" |
jmarkel44 | 14:cc916fa8dd11 | 8 | #include "mDot.h" |
jmarkel44 | 13:c80c283f9db2 | 9 | |
jmarkel44 | 14:cc916fa8dd11 | 10 | extern mDot *GLOBAL_mdot; |
jmarkel44 | 14:cc916fa8dd11 | 11 | |
jmarkel44 | 19:9bc8fabeddfa | 12 | bool SetpointControl::Load(string _controlFile){ |
jmarkel44 | 19:9bc8fabeddfa | 13 | controlFile = _controlFile; |
jmarkel44 | 19:9bc8fabeddfa | 14 | |
jmarkel44 | 19:9bc8fabeddfa | 15 | // try to open the control file |
jmarkel44 | 14:cc916fa8dd11 | 16 | mDot::mdot_file file = GLOBAL_mdot->openUserFile(controlFile.c_str(), mDot::FM_RDONLY); |
jmarkel44 | 19:9bc8fabeddfa | 17 | if ( file.fd < 0 ) return false; |
jmarkel44 | 14:cc916fa8dd11 | 18 | |
jmarkel44 | 19:9bc8fabeddfa | 19 | return true; |
jmarkel44 | 19:9bc8fabeddfa | 20 | } |
jmarkel44 | 19:9bc8fabeddfa | 21 |