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.h
- Revision:
- 97:5cf6ab71dcd0
- Parent:
- 96:807f04bd5256
- Child:
- 131:a290a3934132
--- a/src/ConfigurationHandler/Controls/ManualControl.h Wed Sep 21 12:54:41 2016 +0000
+++ b/src/ConfigurationHandler/Controls/ManualControl.h Wed Sep 21 16:17:12 2016 +0000
@@ -16,14 +16,21 @@
private:
string controlFile; // name of the control file
string id; // identifier
+ string output; // output
unsigned int type; // timed, continuous, setpoint
unsigned int priority; // control priority
unsigned int duration;
float setpoint;
- enum State { OFF = 0, ON = 1 } ;
- State state;
+ unsigned int state; // ON or OFF
unsigned int percent; // analog/manual value
+ enum State {
+ STATE_STARTUP,
+ STATE_CONTROL_ON,
+ STATE_CONTROL_OFF
+ };
+ State currentState;
+
public:
ManualControl() {};
~ManualControl() {
@@ -35,10 +42,11 @@
return controlFile;
}
- int start(void);
- int update(void);
- int unregisterControl();
- void display(void);
+ void start(void);
+ int update(void);
+ int triggerOutput(void);
+ int unregisterControl();
+ void display(void);
};
#endif
